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 answers

hi 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

Popular posts from this blog

php - How to pass multiple values from url -

database - php search bar when I press submit with nothing in the search bar it shows all the data -

ios - How to load .png images from Documents folder of an app -