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
bubbles Boolean (read only)
cancelable Boolean (read only)
currentTarget EventTarget (read only) The object to which the event handler was assigned.
eventPhase Number (read only) When/where did the event take place?
target EventTarget (read only) The object which caught the event.
timeStamp Number (read only) Date/time that the event occurred.
type String (read only)

Instance Methods

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

Constants

name value description
AT_TARGET 2
BUBBLING_PHASE 3
CAPTURING_PHASE 1

Methods that return an Event

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

Arguments that are an Event

namein methodof objectdescription
evt dispatchEvent() EventTarget A valid <a href="object.asp?id