JavaScript Template File : JavaScript in HTML « Development « JavaScript DHTML






JavaScript Template File


<html>
<head>
  <meta http-equiv="Content-Script-Type" content="text/javascript">
  <title>My First JavaScript Script</title>
  <script language="JavaScript">
  <!--
   
  // Your code will go here...
   
  //-->
  </script>
</head>
<body>
   
<!-- Content starts here -->
   
</body>
</html>



           
       








Related examples in the same category

1.HTML comment that hides the script.
2.JavaScript Embedded in an HTML File
3.Using HTML Comments to Hide JavaScript Code
4.Embedding JavaScript in HTML
5.Inserting Source JavaScript Files
6.Using the Head for Definitions
7.A Basic JavaScript Starter Document
8.Embedding a JavaScript Function