Name
Event: information about an event — DOM Level 2 Events, IE: Object → Event
Subinterfaces
UIEvent
Standard Properties
The following properties are defined by the DOM Level 2 Events
standard. See also KeyEvent,
MouseEvent, and UIEvent for additional type-specific event
properties:
-
readonly boolean bubbles trueif the event is of a type that bubbles (unlessstopPropagation( )is called);falseotherwise.-
readonly boolean cancelable trueif the default action associated with the event can be canceled withpreventDefault( );falseotherwise.-
readonly Object currentTarget The Element, Document, or Window that is currently handling this event. During capturing and bubbling, this is different from
target.-
readonly unsigned short eventPhase The current phase of event propagation. The value is one of the following three constants, which represent the capturing phase, normal event dispatch, and the bubbling phase:
eventPhase Constant
Value
Event.CAPTURING_PHASE1Event.AT_TARGET2Event.BUBBLING_PHASE3-
readonly Object target The target node for this event—i.e., the Element, Document, or Window that generated the event.
-
readonly Date timeStamp The date and time at which the event occurred (or, technically, at which the Event object was created). Implementations are not required to provide valid time data in this field, and if they do not, the
getTime( )method of this Date object should return 0. SeeDatein Part III of this book.-
readonly String type The name of the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access