javascript - calling one function in an .html into another .html -
javascript - calling one function in an .html into another .html -
this question has reply here:
calling parent window function iframe 8 answershi want phone call function 1 .html file .html file
parent.html
<html> <body> <script> function alertfunction() { alert("i 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 nail parent .html page frame open button in frame......and when click button should phone call functiona , show alert in parent.html file
onclick="parent.alertfunction()"
window.parent can job.
javascript html html5 iframe
Comments
Post a Comment