How to Put JavaScript into HTML Document

Where to put javaScript
  • Within the Header Segment
  • Within the Body Segment
 
This is the syntax of javascript using in HTML Documents
<html>
   <head>
     <title>JavaScript implement in HTML Doc</title>
     <script type = "text/javascript" >
        ............
     </script>
   </head>

   <body>
     <script type = "text/javascript" >
        ............
     </script>
   </body>
</html>

No comments:

Post a Comment