According to most authorities, you include javascript enclosed in <script> </script> tags in your page header. This works but may not be the best practice. You may, in fact place your javascript in the body of your page. This lets you put functions near the call to the function. You can also enclose each function in its own <script> </script> tags. This is important since any bug, in any function will cause every function within the <script> </script> tags to become inoperative.

You must, according to most authorities, define the contents by adding something like one of these:
<script type="text/Javascript">
<script type=text/javascript>
<script language=JavaScript>

All these work, but are not needed. Script defaults to JavaScript (capitalized however you please) in most browsers. I've just tested these: Firefox 1.5 Linux, 1.5 Win, 2.0 Win; Konqueror 3.3 Linux; MSIE 6, 7; Netscape 7.2; Opera 8 Win, 9 Win.

pop-language.html © 2007, Martin Rinehart