View Full Version : using the document.write("")

12-20-2003, 07:34 PM
on using document.write(" ") i have found it deletes any other buttons or writing on the page is there any way to get around this ( to stop it deleting other stuff)>

thanks yet again:thumbsup:

12-20-2003, 09:21 PM
The document.right method overwrites the existing page except during the initial load.

If you want to put something in the page after the load, then use a layer:

<div id="anyid">

then use document.getElementById('anyid').innerHTML="some value";

instead of document.write