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