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