calling external scripts

script tags are also useful if you wish to call an external javascript file in your html web page documents

an external javascript file is a text file that contains nothing but javscrp code and it is save with the .js extension. by calling an external file, you can save the time of coding long lines of script into each page in which the script is needed. instead, you can use a single line that points to the javascript file with all of the code.

<SCRIPT Language="Javascript" src="javascriptfile.js"></SCRIPT>

with this example, you can attach a file call javascriptfile.js into your HTML document