Next: Including a JavaScript file
Up: JavaScript and the HTML
Previous: Writing small scripts
What if you have a good script:
- Need to use it in several pages?
- Bad Idea: include it every page literally
- What if you need to change to source?
- Good Idea:
- Store code in a separate file
- Include that code in
the head of the page as shown below.
Dave Marshall
9/28/2001