Scripts in the Head and Body : Code Layout « Language Basics « JavaScript DHTML






Scripts in the Head and Body


<HTML>
<HEAD>
<TITLE>A Document</TITLE>
<SCRIPT LANGUAGE="JavaScript">
    //script statement(s) here
    ...
</SCRIPT>
</HEAD>
<BODY>
<SCRIPT LANGUAGE="JavaScript">
    //script statement(s) here
    ...
</SCRIPT>
</BODY>
</HTML>


           
       








Related examples in the same category

1.Scripts in the Head
2. A Script in the Body
3.Two Scripts in the Body
4.Hiding Scripts from Most Old Browsers