Chapter 3. Event Reference

The purpose of this chapter is to provide a list of every event type implemented in current mainstream browsers, as well as those specified in the W3C recommendation for the Events module of DOM Level 2. Events are listed alphabetically by their type names—the same format used by the W3C DOM Events modules. Event bindings using an element object property or the IE attachEvent( ) method require the “on” prefix to the event type name. So that you can readily see whether a particular entry applies to the browser(s) you must support, a version table accompanies each term listed in the following pages. This table tells you at a glance the version of Internet Explorer (IE), pre-Mozilla Netscape Navigator (NN), Mozilla (Moz), Apple Safari (Saf), Opera (starting from version 7), and W3C DOM specification in which the term was first introduced.

If a listing for IE signifies Win or Mac, it means that the event is supported only for the Windows or Macintosh operating system version. IE 5.5 or later is for Windows only. Note that a large number of event types are supported only in IE for Windows, and many of those apply only to data binding applications. If you are concerned with cross-browser deployment, pay very close attention to the browser compatibility charts to find the events that work on a broad array of browser brands and versions. Online Section VI contains many guidelines and examples for blending otherwise incompatible event mechanisms into routines that ...

Get Dynamic HTML: The Definitive Reference, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.