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