Knowledge Walls
Laya
Hyderabad, Andhra Pradesh, India
document.close() Method in Document Object of Javascript Syntax with Examples
2961 Views
Usage 
The Document close method is used to close the stream which is opened by open method.
Syntax 
document.close();
Syntax
	<button onclick="open()">Open</button>
	function open() {
	    document.open();
	    document.write("Welcome");
	    document.close();
	}
Ouput 
It will close the document.
Previous Topics
Previous lessons of current book.
Best Lessons of "Javascript Syntax with Examples"
Top lessons which are viewed more times.
  Copyright © 2014 Knowledge walls, All rights reserved
KnowledgeWalls
keep your tutorials and learnings with KnowledgeWalls. Don't lose your learnings hereafter. Save and revise it whenever required.
Click here for more details