"Christian Radermacher" <ra***@inwind.it> schreef in bericht
news:C9*********************@news1.tin.it...
I have document with an iframe in it. I'm able to call a javascript
function in the main-document from the javascript inside the
iframe-document. I have difficulties to do the other way round, i.e. to
call a function in the iframe-document from javascript in the
main-document.
The following works with IE, Opera 7 and Mozilla when both pages are hosted
on the same domain/environment:
d = document;
f = d.frames ? d.frames['frameName'] : d.getElementById('frameId');
p = f.document || f.contentWindow.document;
p.functionName();
JW