HTML DOM Document open()
HTML DOM Document open() Method
The open() method is used for opening the document for writing. Due to this, all existing documents will be cleared. It is not the same as window.open() which is used for opening a new widow.
Syntax:-
Its syntax is:- document.open()