|
Gospelcom Winter Conference "Broadening your Horizons" February 2002 Nathan Ho | |
| Javascripting 101+ | >HOME< |
|
There are two places to put an embedded javascript. In the head of the document or in the body. Most scripts are (and should be) placed in the head of a document - this allows the scripts to be run or loaded into memory before the rest of the page is dealt with. You can put a script in the body of your page, but it should be only done in specific cases that require it. Those kind of scripts are actually very rare, so we won't be looking at those today. There are also two ways to use an embedded script. One is to use them as sequential commands that run when they are loaded by the page, the other is to store them in functions that are stored in memory until they are called upon. |
| <<Back | The Noscript tag>> |