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

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

SQL Server : need assitance parsing delimted data and returning a long concatenated string -