January 2001
Beginner
312 pages
6h 4m
English
The problem with having choices is knowing which one to choose! Fortunately, by following a few quick and simple rules of thumb, you can come to the right conclusion.
If the JavaScript you are using is large, forget inline and go for the <head> or linked file.
If you want to add the same JavaScript to many HTML pages, linked files will make adding and updating scripts easy.
Want to add a small, one-off JavaScript to a page? Use inline code.
Remember that you can mix and match the three types. Use linked files for most of JavaScript you reuse from one page to the next, put other bulky JavaScript in the <head>, and ...
Read now
Unlock full access