HTML DOM Document write()
HTML DOM Document write() Method
The write() method is used to write directly to an HTML document stream. It will delete everything on the existing HTML when used together with loaded document. It is mostly used in conjunction with open() method which is used for opening output streams.
Its syntax is:- document.write(exp1, ..., expN)
|exp1,...||Optional.The output stream.|