[Javascript] netscape: how to write to <div> tag??

BEKIM BACAJ Trojani2000 at hotmail.com
Thu Jun 28 02:42:40 CDT 2001


Incorrect!
The div is a Tag
it's a do nothing container,
but IFRAME and the FRAME is a brand new window and it loads another copy of the browser into the memory.



----- Original Message -----
From: Andrew Dunn
Sent: Wednesday, June 27, 2001 12:09 PM
To: javascript at LaTech.edu
Subject: RE: [Javascript] netscape: how to write to  
tag??


Hi,
  So would i be correct in saying that a <div> tag is like a whole new
window?

-----Original Message-----
From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On
Behalf Of Peter-Paul Koch
Sent: Wednesday, 27 June 2001 7:25 PM
To: javascript at LaTech.edu
Subject: RE: [Javascript] netscape: how to write to <div> tag??



>    Is is possible to write to parts of the page (like the div tag) without
>clearing the page? If it is possible, is it possible to write HTML to that
>section of the page?

Yes and yes. See http://www.xs4all.nl/~ppk/js/index.html?layerwrite.html for
the script you need.

As to the other question: Can you append something to a div, it is possible
in IE and NN6 by doing

innerHTML = innerHTML + '<P>The new stuff</P>';

As to Netscape 4, I'm not sure. Maybe it is when you leave out the close().
Anyway, you could always store the content of the DIV and then append the
new content to the storage, then reopen the DIV and write the new content
into it.

ppk
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
http://www.LaTech.edu/mailman/listinfo/javascript


_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
http://www.LaTech.edu/mailman/listinfo/javascript<br clear=all><hr>Get Your Private, Free E-mail from MSN Hotmail at <a href="http://www.hotmail.com">http://www.hotmail.com</a>.<br></p>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20010628/81eeac0a/attachment.htm>


More information about the Javascript mailing list