Book Section
-----

Teach Yourself
JavaScript 1.5

-----
About the Book
Examples
Downloads
Exercises
Errata/Notes
Other Books

General Section
-----
Discussion Forum
Articles / Tips
JavaScript Links
About the Author
Privacy Policy
Contact Me



Other Sites
-----
Website Workshop
JavaScript Weblog
Examples - Teach Yourself JavaScript 1.5 (Second Edition)

The examples (listings) from Teach Yourself JavaScript 1.5 (Second Edition) are listed below. When you select one, it will be displayed in your browser; if you would rather look at the JavaScript source, use your browser's View Source option.

Hour 1: Understanding JavaScript

Hour 2: Creating a Simple Script

Hour 3: Exploring JavaScript's Capabilities

Hour 4: How JavaScript Programs Work

  • (No script examples in this chapter)

Hour 5: Using Variables and Functions

Hour 6: Using Strings and Arrays

Hour 7: Testing and Comparing Values

Hour 8: Repeating Yourself: Using Loops

Hour 9: Using Built-in Objects

  • Listing 9.3: Testing JavaScript's random number functions

Hour 10: Working with the Document Object Model

Hour 11: Creating Custom Objects

Hour 12: Responding to Events

Hour 13: Using Windows and Frames

Hour 14: Getting Data with Forms

Hour 15: Using Graphics and Animation

Hour 16: Creating Cross-Browser Scripts

Hour 17: Working with Style Sheets

  • Listing 17.2: Style sheet example (Requires Netscape 4.0/IE 4.0 or later)
  • Listing 17.5: The dynamic style sheet example (Requires Netscape 6.0/IE 5/0 or later)

Hour 18: Creating Dynamic Pages with the DOM

Hour 19: Using Advanced DOM Features

NOTE: All of these examples require Netscape 6.0/IE 5.0 or later.

Hour 20: Working with Multimedia and Plug-ins

Hour 21: Finding and Handling Errors

Hour 22: Improving a Web Page with JavaScript

  • Listing 22.1: The initial FSC Web page, without JavaScript
  • Listing 22.6: The FSC Web page with various JavaScript additions

Hour 23: Creating a JavaScript Game

Hour 24: Where Do We Go From Here?

  • (No script examples in this chapter)
(c) 1997-2002 Starling Technologies and Michael Moncur. Portions (c) Sams Publishing.