Event in DOM Level 2 Events

The base class from which event instances inherit.

For official information please see http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-Event.

Instance Properties

name type description
type String (read only)
bubbles Boolean (read only)
cancelable Boolean (read only)
timeStamp Number (read only) Date/time that the event occurred.
eventPhase Number (read only) When/where did the event take place?
target EventTarget (read only) The object which caught the event.
currentTarget EventTarget (read only) The object to which the event handler was assigned.

Instance Methods

name returns description
stopPropagation() (none)
preventDefault() (none)
initEvent() (none) Initialize the event object prior to dispatching it.

Constants

name object value description
CAPTURING_PHASE Event 1
AT_TARGET Event 2
BUBBLING_PHASE Event 3

Methods that return a Event

name of object description
createEvent() DocumentEvent Creates and returns a new Event object.

Arguments that are a Event

name in method of object description
evt dispatchEvent() EventTarget A valid event object