The code listings from the text are available here. Please buy
the book for complete explanations of all the code listings. Each link
opens a new window. View the source code of each page using your Web browser's
view source feature (usually under the view menu).
You may download the mylibrary.js file using this link. Right-click (Windows) or control-click
(Mac) to download the link to disk. Open it with any text editor.
Chapter 1:
JavaScript Basics
Chapter 2:
Enhancing Web Pages
Chapter 3:
Working with Forms
- listing 3.1 (survey, modified
from text to work with CGI)
- listing 3.2 (survey with
validation, modified from text to work with CGI)
- listing 3.3 (autoformat information
typed by your visitor)
- listing 3.4 (survey with
feedback and radio button controls)
- listing 3.5 (survey with
feedback and check box controls)
- listing 3.6 (survey with
feedback and selection menu control)
- listing 3.7 (quiz that grades
itself)
Chapter 4: Image Swapping
Chapter 5: More Image Swapping
Chapter 6: Dates and Times
Chapter 7: Cookies
Chapter 8: Frames and Windows
Chapter 9: Useful Techniques
Image Files