Hi i want to call a function from 1 .html file to another .html file
Parent.html
<html>
<body>
<script>
function alertFunction()
{
alert("I am an alert box!");
}
</script>
<iframe src="childFile.html" width="80%" height="80%"></iframe>
</body>
</html>
Child.html
<button type="button" onClick="alertFunction()">button</button>
So when i hit the parent .html page a frame will open with the button in that frame......and when i click that button it should call that functiona and show the alert in parent.html file