Click to See Complete Forum and Search --> : IE vs Netscape


difrad76
07-22-2004, 09:36 PM
Why this statement would work in IE and wouldn't in Netscape? Any Ideas ?

document.getElementById("float1").src="http://www.maritimelife.ca/home/";

BTW float1 is an iframe

Jona
07-22-2004, 09:50 PM
What version of Netscape are you using? The above code should work in NS6+.

gil davis
07-23-2004, 11:38 AM
In Netscape, an iframe is a window object, not a document object. Try using
window.top["float1"].src
and see if it works.