document.write() problem

admin

Administrator
Staff member
I use the document.write() function my webpage. I usually do this in the form of input buttons and links that trigger "document.write()". However, sometimes it adds the stuff inside document.write(blah blah blah) into the page with all the rest of the stuff, and other times it erases everything on the page and puts in the text inside document.write() in a new page (in which case the Back history button can be pressed to reverse the effect). I just never know. How do I make it so that when document.write() is triggered, it writes the text in a blank page, or just adds it to the text already on the page?
 
Back
Top