Assume your iFrame's id is "
targetFrame
" and the function you want to call is
targetFunction():
document.getElementById('targetFrame').contentWindow.targetFunction();
NOTE: You can also access the frame using window.frames
instead of document.getElementById
.
BUT - You can't use "window.frames" if your IFRAME was created programmatically, only if it is declared in the HTML page source
Cheers,
Edo