Event handler examples
This first example is from the print edition of the article. It is called nav.htm
and illustrates the use of JavaScript's navigator object to determine the browser
being used to view the page.
See the example or view source
This set of examples is a series of HTML pages that
introduces each of the JavaScript form elements, as well as their properties
and methods. It also includes examples of each of the objects. Finally
(as if that weren't enough!), the presentation of the material is also an
example of using form objects.
See the example
This example, Joe.htm, was written in response to a reader query. The reader was
setting up a Web site that would allow users to order food online and have it delivered.
The main concern of the reader was displaying the current total before the order was
submitted, but it was easier for me to write an entire application than one function.
Portions of this example were used in a professional Web site, and with a little
better layout (and a real menu), the entire application could easily be used.
See example, or view source
This last example is the source code to the object browser. Like the Joe's example,
it is prefaced by a text explaining the design considerations that went into
its making.
See the source