JavaScript Tutorial





Español Français 中文 Deutsch Portuguese Japanese nederlands
   
 
Java-Script Tutorial
Introduction Introduction
Variables Variables
Operators Operators
Statements Statements
Loops Loops
Functions Functions
Objects Objects
Arrays Arrays
Cookies JS Cookies
Browser Objects Browser Objects
Form DOM Form DOM
Style Objects DOM Style Objects
Forums Ask Your Doubts
Scraps More about Javascript
Feedback Feedback
 




document.write Function


Tutorials Javascript

Topic

First Javascript program using document.write?



Explanation

We will begin with the in built method or function document.write() to code our first javascript program.

This method helps to write any given variable on the browser.

Example:
<html>
<head></head>
<body>

<script language=javascript>
document.write("This is my first javascript program");
</script>

</body>
</html>


Test It: Copy the code or type the code in to the text box shown below and click show.








A Note
Javascript (JS) is one of the most used languages in the world. Some times spelled as Java Script. Hope you enjoy this tutorial. Do send your feedback or suggestions on this javascript or java script tutorial. This is a copyright content.

Other Links

web hosting