|
Gospelcom Winter Conference "Broadening your Horizons" February 2002 Nathan Ho | |
| Javascripting 101+ | >HOME< |
|
I mentioned earlier that there are two ways to use scripts in a given page. We talked about embedding the scripts into the page directly, now we'll look at using a source file instead. Using a source file is very similar to embedding in that it starts with the <script> tags. However, rather than putting functions and scripts in between them, we'll call an external source file like this: <script language="javscript" src="jsfuncs.js">
(note - the javascript source file does not require the <script> tags around them, as you are calling the file from within a <script> tag set.) Let me quickly point out that I recommend using JS source files, for pretty much the same reasons as those for using a CSS file. |
| <<Back | Show me the examples!>> |