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
Continuing with JoelAnair's answer:
For more robustness, use as follows:
var el = document.getElementById('targetFrame'); if(el.contentWindow) { el.contentWindow.targetFunction(); } else if(el.contentDocument) { el.contentDocument.targetFunction(); }
Workd like charm :)