JavaScript Tutorial

JAVASCRIPT TUTORIAL 

                   Introduction

JavaScript is dynamic language that execute within a browser .JavaScript code is embedded within an HTML page using the JavaScript tag.The <script> tag is used to embed JavaScript code.JavaScript code can be embedded in.

-An external file

           -The header of the page

        -The body of the page

In this example ,JavaScript is embedded within the header. As soon as the page is loaded this code is executed.


<html>
 <head> 
<title>JavaScript Example</title>
 <script language="JavaScript 1.2">
 <!-- 
document.write("Hello World!"); 
//-->
 </script>
 </head>
 <body>The body</body>
 </html>

The Document write method displays the text


Notice that the JavaScript code is enclosed in HTML comment tags

                 

                              For more detail download the PDF below

                                    Download here

Next Post Previous Post
No Comment
Add Comment
comment url