Home / code / javascript

Document.write in Javascript

document.write is used when you want that javascript writes something on the page.

example:

document.write("Your resolution is "+ screen.width +"x"+ screen.height +".<br>");
The basic code is :

document.write("text");
Note: This must be within javascript tags <SCRIPT LANGUAGE="JavaScript"></SCRIPT>

 

TOP

Latest script:

 

Books: