Forum Moderators: open

Message Too Old, No Replies

IFRAME and Netscape

IFrame and Netscape usage

         

a_traub

5:37 pm on Jun 23, 2003 (gmt 0)

10+ Year Member



Can someone tell me how to write directly to an IFRAME under Netscape 6/7? The following code works fine on IE, but does nothing on NS:

var myfrm = document.frames["myiframe"];
myfrm.document.open();
myfrm.document.write(text);
myfrm.document.close();

Thanks

Andrew

[edited by: tedster at 6:13 pm (utc) on June 23, 2003]

DrDoc

10:10 pm on Jun 23, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



myiframe.document.write()
or
self.myiframe.document.write()

a_traub

1:49 pm on Jun 24, 2003 (gmt 0)

10+ Year Member



Isn't the first one the same as one of the lines I have included?

a_traub

1:55 pm on Jun 24, 2003 (gmt 0)

10+ Year Member



Thanks! Your code worked!