pankaj.ghadge Posted October 3, 2008 Share Posted October 3, 2008 Suppose i have included a iframe in my html page and i want to call a javascript function that is written in iframe source code.so is it possible. ............please tell me................ Link to comment Share on other sites More sharing options...
jeffman Posted October 3, 2008 Share Posted October 3, 2008 I hate using names, but I think this is supported just about everywhere.parent.frames["my_frame"].func();----<iframe src="whatever.html" name="my_frame"></iframe> Link to comment Share on other sites More sharing options...
Jesdisciple Posted October 3, 2008 Share Posted October 3, 2008 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.