JavaScript Basics |
Using the <SCRIPT> tag
JavaScript lives between the <SCRIPT> </SCRIPT> tags and always
uses the following form:
<script language="JavaScript">
<!-- The script commands go here //--> </script> |
|
Adding the Script
Where you position the script in your page depends on what it does:
If the script writes to the page, you position the script where you want the text to appear.
If not, as in most of the examples, the script is positioned between the </HEAD>
and <BODY> tags
|
JavaScript Tutorials, Examples, Scripts and FAQs |
|
For recent JavaScript additions - check below... |