Jump to content

how to call iframe function


pankaj.ghadge

Recommended Posts

parent.frames["my_frame"].func();

Wait, wouldn't that be a call from the iframe to the iframe, equivalent to this?

window.func();

Or are you trying to go from the iframe to a sibling iframe?This would call from the iframe to the page which contains the iframe:

window.parent.func();

And this would do the opposite:

window.frames['my_frame'].func();

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...