Event : Object
Event contains information describing the current event such as a click or download event. It is the first parameter to event listener callbacks. See MouseEvent, KeyboardEvent, and ProgressEvent for some derivations of Event.
Instance Properties
currentTarget : Object
defaultPrevented : Boolean
Returns true if preventDefault() has been called on this.
Example:
RunResults:
eventPhase : Number
The current phase of the event. Will be one of NONE, CAPTURING_PHASE, AT_TARGET, or BUBBLING_PHASE.
Example:
RunResults:
timeStamp : Number
Instance Methods
preventDefault() : undefined
Stops the browser's default behavior from running for the current event. Only cancelable events can have their default behavior prevented. See also stopPropagation() and stopImmediatePropagation().
Example:
RunResults:
stopImmediatePropagation() : undefined
Stops other event listeners on this node and on other nodes in the event route from running. See also stopPropagation() and and preventDefault().
Example:
RunResults:
stopPropagation() : undefined
Stops event listeners on other nodes in the event route from running. Other listeners attached to currentTarget will still run. See also stopImmediatePropagation() and preventDefault().
Example:
RunResults:
Copyright © JavaScripture Contributors