Site hosted by Angelfire.com: Build your free website today!

JavaScript:The SCRIPT block

JavaScript code blocks must be enclosed within SCRIPT container tags. (Otherwise your browser will treat them as text.)

Script containers may go in both the head and body of a web document. Functions should usually go in the head.

<SCRIPT type="text/javascript">
<!--


.. Type your JavaScript code here ..

// -->
</SCRIPT>

The <!-- HTML comment tags --> are included in order to accommodate browsers that cannot parse JavaScript. If you omit these tags, such browsers will usually display the JavaScript code on the page! Don’t forget to put the JavaScript comment escaper // in front of the last --> tag.