document.write() in javascript
This is used to display a given text in a web page.
This is mainly used for testing purpose.
When document.write() is executed after the page load, it will erase all the contents in the web page and shows only the text specified in it.