Web Design

Only members of this group can post notes and use other group resources. Join now to get access to all group resources!
Log in or register to join this group

Client Side Scripting Call IFrame Javascript code from the parent frame  Viewed 14049 time(s), 2 post(s)., 1/12/2014 7:37:31 PM - by Maya

Maya
Maya 1/12/2014 7:37:31 PM

How to call a function in IFrame from the parent frame?

This content has not been rated yet. 
141 Reputation 9 Total posts
1
Sam
Sam 1/12/2014 8:54:45 PM

If you want to call myfunction() in IFrame name myIFrame

document.getElementById('myIFrame').contentWindow.myfunction();

This content has not been rated yet. 
233 Reputation 37 Total posts
2