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.
Tutorialcodeplay is an extensive resource to teach Web Development, Programming and Technical stuff from ground up to Professional Level.
Copyright-2018 by Tutorialcodeplay. All Rights Reserved.