JavaScript code may be stored in an external file (and is therefore reusable): |
<SCRIPT SRC="JScode.js"> // The body of this <SCRIPT> is // executed only if "JScode.js" // is not found! document.write("File not found!"); </SCRIPT> |
An external file must have a .js extension and the server must be configured properly |