UIEvent in DOM Level 2 Events

Provides contextual information associated with a specific User Interface event.

For more information see http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-eventgroupings-uievents.

Inherits from:

Inerhited by:

Instance Properties

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

Instance Methods

name returns description
initEvent(eventTypeArg,canBubbleArg,cancelableArg) (none) Initialize the event object prior to dispatching it. [from Event]
initUIEvent(typeArg,canBubbleArg,cancelableArg,…) (none)
preventDefault() (none) [from Event]
stopPropagation() (none) [from Event]

Description

The User Interface event module is composed of events listed in HTML 4.0 and additional events which are supported in DOM Level 0 browsers. A DOM application may use the hasFeature(feature, version) method of the DOMImplementation interface with parameter values "UIEvents" and "2.0" (respectively) to determine whether or not the User Interface event module is supported by the implementation. In order to fully support this module, an implementation must also support the "Events" feature defined in this specification and the "Views" feature defined in the DOM Level 2 Views specification [DOM Level 2 Views]. Note: To create an instance of the UIEvent interface, use the feature string "UIEvents" as the value of the eventType parameter passed to createEvent(...).