Availability
Synopsis
window.captureEvents(eventmask) document.captureEvents(eventmask) layer.captureEvents(eventmask)Arguments
eventmask
An integer that specifies the type of events that the window,
document, or layer should capture. This value should be one of the
static event type constants defined by the Event class, or it should
be a group of event type constants combined with the bitwise-OR
(|) or addition operators.
Description
captureEvents( ) is a method of the Window,
Document, and Layer classes. Its purpose is the same for all three:
in the Netscape 4 event model, captureEvents( )
specifies that all events of a given type or types occurring within
the specified window,
document, or
layer should be passed to the window,
document, or layer instead of to the object on which they actually
occurred.
The type of the events to be captured is specified by
eventmask, a bitmask comprised of static
constants defined by the Event class. See the
"Event.TYPE" reference page for a full list of these
bitmask constants.
See Also
Event, Window.handleEvent( ), Window.releaseEvents( ),
Window.routeEvent( ); Chapter 19;
EventTarget.addEventListener( ) in the DOM reference section
•
Table of Contents
•
Index
•
Reviews
•
Examples
•
Reader Reviews
•
Errata
JavaScript: The Definitive Guide, 4th Edition
By
David Flanagan
Publisher
: O'Reilly
Pub Date
: November 2001
ISBN
: 0-596-00048-0
Pages
: 936
Slots
: 1
This fourth edition of the definitive reference to
JavaScript, a scripting language that can be embedded
directly in web pages, covers the latest version of the
language, JavaScript 1.5, as supported by Netscape 6 and
Internet Explorer 6. The book also provides complete
coverage of the W3C DOM standard (Level 1 and Level 2),
while retaining material on the legacy Level 0 DOM for
backward compatibility.