Knowledge Walls
Laya
Hyderabad, Andhra Pradesh, India
document.open() Method in Document Object of Javascript Syntax with Examples
2918 Views
Usage 
The document.open() method  is used open new document.
Syntax 
document.open();
Example
<button onclick="open()">Open</button>
function open() {
    document.open();
    document.write("Welcome");
    document.close();
}
Examle 
It will display page with message inside document"Welcome".
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