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






Scripts in the Head

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

           
       








Related examples in the same category

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