Chapter 12 DOM Events

The DOM Level 2 Event Model was designed with two main goals. The first goal was to offer a generic model that would allow the registration of event handlers, flow for events to follow, and basic contextual information regarding the event. The second goal was to provide backward compatibility with the event models of DOM Level 0 and Level 1.

DocumentEvent

JavaScript 1.5+, JScript 5.0+

Nav6+, IE5+

 

Syntax

DOM Event object.

Description

The DocumentEvent object provides a mechanism by which the user can create an Event of a type supported by the implementation. It is expected that the DocumentEvent interface will be implemented on the same object which implements the Document interface in an implementation that supports ...

Get Pure JavaScript, Second 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.