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 namesthe 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 work on many browser types.

In the following listings below, the "Bubbles" category indicates whether the event follows event bubbling propagation (in browsers that support event bubbling, described in Online Section VI), while the "Cancelable" category means that the default action usually associated with the event (such as navigating to a new URL when clicking on an a element) can be canceled by script statements, thus averting the normal operation. The category named "Typical Targets" usually points to broad types of elements to which the event type may be applied. For more specific element support for each event type, consult Chapter 9.




Dynamic HTML. The Definitive Reference
Dynamic HTML: The Definitive Reference
ISBN: 0596527403
EAN: 2147483647
Year: 2004
Pages: 120
Authors: Danny Goodman

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net