60script language="JavaScript">
<!-- Use the HTML comment to hide JavaScript from old browsers
document.write("This text was written using JavaScript.")
// End hiding JavaScript -->
</script>
<NOSCRIPT>
You see this if your browser won't run JavaScript.
</NOSCRIPT>
</body>
</html>
Note that there are two tags used to implement this script example:
SCRIPT - The area between the <SCRIPT> and the </SCRIPT> tags defines the script program.
language - Defines the script language. Choices are JavaScript and VBScript.
SRC - Defines an external file containing the source code of the JavaScript. It may be a URL with the complete path to the script which may reside at anot |