Document JavaScript Tutorial

Syntax

document.close()
The close() method closes the output stream to the document.
Any output that has not been written prior to calling the method will be displayed.