JavaScript Tutorial

adplus-dvertising
JavaScript Introduction
Previous Home Next

Definition of javascript :-

JavaScript is a scripting language that is used for client side scripting,It was developed by Brendan Eich in 1995, At first it was named as Mocha, then LiveScript and at the last JavaScript.

Manely Microsoft and Netscape introduced JavaScript support in their browsers, javascript and jscript is a same (only name is difference)

JavaScript is mixup of three languages all these language must learn:

      
  • HTML: to show the content of web pages
  •    
  • CSS: to specify the layout of web pages
  •    
  • JavaScript: to make a interactive web page

Example of javascript program :

<html>
<head>
   
<h1>Welcome to  the world of javascript</h1>
<script type="text/javascript">  
    document.write("Prasant Prasun is  a  MCA candidate");  
    </script> 
 </head>
</html>

Output:

Welcome to the world of javascript
Prasant Prasun is a MCA candidate 

script tag show that we are using JavaScript.

text/javascript is the content type that provides information to the browser about the data.

document.write() function is used to display dynamic content

Home Home Next