I'm using document.write() function to write onto the document body. But after writing some text, I want to clear the document. Let us say if you click on a button, text on the document will be erased. For this I tried to use document.clear() method. But it doesn't seem to be working. What can I do?
Thanks in advance.



Reply With Quote


Bookmarks