Knowledge Walls
Laya
Hyderabad, Andhra Pradesh, India
document.write() Method in Document Object of Javascript Syntax with Examples
832 Views
Usage 
The Document write method is used to write message inside the document.
Syntax 
document.write("any message");
Syntax
<button onclick="open()">Try it</button>
function open() {
    document.open();
    document.write("Welcome");
    document.close();
}
Output 
Once we run the program, it will display the messgae which writen by using write option.
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