<HTML><BODY STYLE="font:10pt verdana; border:none;"><DIV>Sure!</DIV> <DIV>&nbsp;</DIV> <DIV>In IE you can use any element to write inside of it.</DIV> <DIV>&nbsp;</DIV> <DIV><STRONG>&lt;div ID="newContent" style="color:red"&gt;The old text otherwise left empty?!&lt;br&gt;&lt;/div&gt;</STRONG></DIV> <DIV><STRONG></STRONG>&nbsp;</DIV> <DIV>If you like to have it positioned and formated as previously defined you do it in you're </DIV> <DIV><STRONG>&lt;style&gt;</STRONG></DIV> <DIV><STRONG>&lt;/style&gt;</STRONG></DIV> <DIV>element.</DIV> <DIV>&nbsp;</DIV> <DIV>If only this element uses this format refer it from it's ID like this:</DIV> <DIV><STRONG>#newContent{position:absolute/relative</STRONG></DIV> <DIV><STRONG>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Top:</STRONG></DIV> <DIV><STRONG>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Left:</STRONG></DIV> <DIV><STRONG>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Font:</STRONG></DIV> <DIV><STRONG>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Background:</STRONG></DIV> <DIV><STRONG>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; color:</STRONG></DIV> <DIV><STRONG>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ...etc...</STRONG></DIV> <DIV><STRONG>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</STRONG></DIV> <DIV>If the DIV is empty</DIV> <DIV>&nbsp;&nbsp;&nbsp;&nbsp; Try using: </DIV> <DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <STRONG>newContent.innerText="the fool content";</STRONG></DIV> <DIV>...through JavaScript function.</DIV> <DIV>If the div is not empty and you like to add the new content without wiping the current</DIV> <DIV>&nbsp;&nbsp;&nbsp;&nbsp; Try using: </DIV> <DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <STRONG>newContent.insertAdjacentText('AfterBegin/BeforeEnd', 'the content'&nbsp;)</STRONG></DIV> <DIV>Depending on wether you like the new content to apear after or before the older text you will chose <EM><STRONG>AfterBegin</STRONG></EM> or <STRONG><EM>BeforeEnd, </EM></STRONG>sametime preserving the formating you've specifyed in you're CSS.</DIV> <DIV>&nbsp;</DIV> <DIV>Otherwise [!more control], If you like to add a new content even a newer&nbsp;tag and separate content with different formating attributes</DIV> <DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Try using:</DIV> <DIV> <DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <STRONG>newContent.insertAdjacentHTML('AfterBegin/BeforeEnd', '&lt;the tag and the style attributes&gt;the content&lt;/the tag&gt;'&nbsp;) </STRONG></DIV> <DIV>or if you like to have completely new content element f.i. div,p,span, etc; rendered relative to the desired element before or after it (that is:outside)</DIV> <DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Try using: </DIV></DIV> <DIV> <DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <STRONG>newContent.insertAdjacentHTML('BeforeBegin/AfterEnd', '&lt;the tag and the style attributes&gt;the content&lt;/the tag&gt;')</STRONG></DIV> <DIV><EM>* You can also use the ID or Class assignment to refer through the CSS formating in the style section instead the inlined style definition</EM></DIV> <DIV><EM>And now the function</EM></DIV> <DIV> <DIV><EM>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <STRONG>function freshContent(){</STRONG></EM></DIV> <DIV><STRONG> <DIV><STRONG><EM>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; theContent="simply inserted newer text over the older one or if empty tag filling it with content"</EM></STRONG></DIV></STRONG></DIV> <DIV><STRONG><EM>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; theContent1=" inserted newer text over the older one &lt;i&gt;made&nbsp;italic.&lt;/i&gt;"</EM></STRONG></DIV> <DIV><EM>//or if you like to have some extra formating inside the new text like underlined or bold even italic</EM></DIV> <DIV><STRONG><EM>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; theContent2="&lt;br&gt;This&nbsp;will be wrtitten formating this&lt;b&gt; bold&lt;/b&gt; just before the old text&lt;br&gt;"</EM></STRONG></DIV> <DIV><EM>//but in case you like to have an extra tag that is only dependent in preceeding order, than you would do something like this:</EM></DIV> <DIV> <DIV><STRONG><EM>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; theContent3="&lt;div id=before&gt;&lt;u&gt;This tag apears&nbsp;before the referencial tag underlined&lt;/u&gt;&lt;/div&gt;"</EM></STRONG></DIV> <DIV><EM>//please format this new tags inside &lt;style&gt;&lt;/style&gt; part of document, -worthed for redability and flexibile control of it's future style changes</EM></DIV> <DIV> <DIV><STRONG><EM>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; theContent4="&lt;br&gt;This&nbsp;will be wrtitten formating this&lt;b&gt; bold&lt;/b&gt; behind the old text"</EM></STRONG></DIV></DIV> <DIV> <DIV><STRONG><EM>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; theContent5="&lt;div id=after&gt;&lt;i&gt;This tag apears after the referencial tag in italic&lt;/i&gt;&lt;/div&gt;"</EM></STRONG></DIV> <DIV><STRONG><EM>//*********************************************************************************************************</EM></STRONG></DIV> <DIV><STRONG><EM>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; newContent.innerText=theContent</EM></STRONG></DIV> <DIV> <DIV><STRONG><EM>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; newContent.innerHTML=theContent1+"(The &nbsp;replaced text).&lt;br&gt;"</EM></STRONG></DIV> <DIV> <DIV><STRONG><EM>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; newContent.insertAdjacentHTML('AfterBegin', theContent2+"&lt;BR&gt;")</EM></STRONG></DIV> <DIV><STRONG><EM>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; newContent.insertAdjacentHTML('BeforeBegin', theContent3)</EM></STRONG></DIV> <DIV> <DIV><STRONG><EM>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; newContent.insertAdjacentHTML('BeforeEnd', theContent4+" &lt;br&gt;")</EM></STRONG></DIV></DIV> <DIV><STRONG><EM>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; newContent.insertAdjacentHTML('AfterEnd', theContent4)</EM></STRONG></DIV> <DIV><STRONG><EM>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</EM></STRONG></DIV> <DIV><EM>//insert comment signs before the first and second statement if you like to preserve the old text of the tag</EM></DIV> <DIV><EM>// when you're done, use any kind of event onclick onmouseover etc to execute it</EM></DIV> <DIV><STRONG><FONT color=#cc0000>PRECAUTION: </FONT><FONT color=#3300ff>CREATE SOME SCRIPT HANDLER FOR THE INSERTADJACENT BECAUSE IT EXECUTES E NEW LINE/TAG EVERY TIME YOU CALL THE FUNCTION, TRY USING ENABLE/DISABLE&nbsp;FOR BUTTONS</FONT></STRONG></DIV> <DIV><FONT color=#3300ff></FONT>&nbsp;</DIV> <DIV>&nbsp;</DIV></DIV></DIV></DIV></DIV></DIV></DIV> <DIV>Cheers</DIV> <DIV><BR>&nbsp;</DIV> <DIV><BR></DIV> <BLOCKQUOTE style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"> <DIV style="FONT: 10pt Arial">----- Original Message -----</DIV> <DIV style="BACKGROUND: #e4e4e4; FONT: 10pt Arial; FONT-COLOR: black"><B>From:</B>&nbsp;Andrew Dunn</DIV> <DIV style="FONT: 10pt Arial"><B>Sent:</B>&nbsp;Wednesday, June 27, 2001 4:21 AM</DIV> <DIV style="FONT: 10pt Arial"><B>To:</B>&nbsp;javascript@LaTech.edu</DIV> <DIV style="FONT: 10pt Arial"><B>Subject:</B>&nbsp;RE: [Javascript] netscape: how to write to  <DIV>tag??</DIV> <DIV><BR></DIV>Hi,<BR>&nbsp;&nbsp; is it possible to write stuff to parts of a page (like the div tag) after<BR>the page has loaded without causing the rest of the page to clear?<BR><BR>Andrew<BR><BR>-----Original Message-----<BR>From: javascript-admin@LaTech.edu [mailto:javascript-admin@LaTech.edu]On<BR>Behalf Of Andrew Gibson<BR>Sent: Wednesday, 27 June 2001 7:43 AM<BR>To: javascript@LaTech.edu<BR>Subject: RE: [Javascript] netscape: how to write to &lt;div&gt; tag??<BR><BR><BR>from memory I think you need to go<BR><BR>document.layers["div1"].document.write("hello")<BR>document.close()<BR><BR>Andrew Gibson<BR><BR>&gt; I can write to &lt;div id="div1"&gt; in IE4, but not in<BR>&gt; Netscape 4.7<BR>&gt;<BR>&gt; I've tried the following without any success...please<BR>&gt; help to write to NS 4 &lt;div&gt; ('layers'):<BR>&gt;<BR>&gt; =========<BR>&gt;<BR>&gt;<BR>&gt;&nbsp;&nbsp; &lt;script language="JavaScript"&gt;<BR>&gt;&nbsp;&nbsp; &lt;!--<BR>&gt;&nbsp;&nbsp; function layer() {<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; if (!document.all) {<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; document.layers["div1"].document.write("hello<BR>&gt; NS");<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; } else if (document.all) {<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; document.all["div1"].innerHTML = "Hello IE";<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&gt;<BR>&gt;&nbsp;&nbsp; }<BR>&gt;<BR>&gt;&nbsp;&nbsp; // --&gt;<BR>&gt;&nbsp;&nbsp; &lt;/script&gt;<BR>&gt;<BR>&gt; =========<BR>&gt;<BR>&gt; &lt;a href="javascript:layer();"&gt;Click&lt;/a&gt;&lt;br&gt;<BR>&gt;<BR>&gt; &lt;div id="div1"&gt;<BR>&gt; div 1 layer<BR>&gt; &lt;/div&gt;<BR>&gt;<BR>&gt; =========<BR>&gt;<BR>&gt; =====<BR>&gt; --<BR>&gt; Anthony E.<BR>&gt; AP Web Design<BR>&gt;<BR>&gt; __________________________________________________<BR>&gt; Do You Yahoo!?<BR>&gt; Get personalized email addresses from Yahoo! Mail<BR>&gt; http://personal.mail.yahoo.com/<BR>&gt;<BR>&gt; _______________________________________________<BR>&gt; Javascript mailing list<BR>&gt; Javascript@LaTech.edu<BR>&gt; http://www.LaTech.edu/mailman/listinfo/javascript<BR>&gt;<BR><BR>_______________________________________________<BR>Javascript mailing list<BR>Javascript@LaTech.edu<BR>http://www.LaTech.edu/mailman/listinfo/javascript<BR><BR><BR>_______________________________________________<BR>Javascript mailing list<BR>Javascript@LaTech.edu<BR>http://www.LaTech.edu/mailman/listinfo/javascript<BR></DIV></BLOCKQUOTE></BODY></HTML><DIV><BR><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></DIV>