Figures from Chapter 19
- Figure 19.1 -- Example script element containing a single function definition. Note the use of an X/HTML comment to "hide" the element content from old browsers that do not understand the script element.
- Figure 19.2 [html | txt] -- -- A simple document containing JavaScript code that prints a line of markup into the document body.
- Figure 19.5 [html | txt]; script.js -- A document illustrating external JavaScript files, also showing the content of the external script file script.js.
- Figure 19.6 -- A document illustrating the type="button" input element and event handling attributes.
- Figure 19.8 -- Example document illustrating JavaScript dynamic updating of a text input element. This example creates a single text input element that acts as a real-time clock.
- Bonus Example: rollovers.html -- Example document illustrating JavaScript usage to produce rollover images. View the source listing for an explanation.