Handling events

Objectives

Important note

One thing you will notice throughout these notes is that a lot depends upon differences between browsers - especially when dealing with the screen and the keyboard. This greatly complicates programming. Fortunately, the same Ajax libraries that make working with asynchronous Javascript server requests easier also provide libraries that often make event handling more standardized between browsers. If you need to work with the screen or keyboard, you would be best off investigating the current Ajax libraries.

Overview of events

Window events

Mouse events

Form events

Key events