Basically, I have an iframe embedded in a page and the iframe has some JavaScript routines I need to invoke from the parent page.
iframe
Now the o
In the IFRAME, make your function public to the window object:
window.myFunction = function(args) { doStuff(); }
For access from the parent page, use this:
var iframe = document.getElementById("iframeId"); iframe.contentWindow.myFunction(args);