Click to See Complete Forum and Search --> : IFrame contentWindow in NN6


ChuckGoose
08-12-2003, 04:49 PM
I'm trying to call a function defined in a document loaded in an IFrame. In later versions of mozilla:

myIFrame.contentWindow.functionName();

works like a charm. In NN6, however, contentWindow is not a member of the IFrame object. Does anyone know a workaround that I can use? Or, as another possible workaround, does anyone know how I can scroll a div in NN6?

Thanks,
Chuck

Khalid Ali
08-13-2003, 01:41 AM
Here is a resource that might help you.

Vertcal scrolling div (http://68.145.35.86/dev/webapplikations/pages/html_js/document/SimpleVerticalDivScroll.html)

ChuckGoose
08-13-2003, 12:54 PM
Thanks, but I found out that

window.frames.myIFrame != document.getElementById("myIFrame")

window.frames.myIFrame gives you the window object of the iframe and I can call the function from there. I was trying to go from document.getElementById method which in NN6 provides no interface to its window object.

Chuck