UIEvent

Description

Encapsulates input event information for an event that propagates through a container and control hierarchy.

Implements W3C standard event handling. This object is passed to a function that you register to respond to events of a certain type that occur in a window or control. Use windowObj.addEventListener()?or controlObj.addEventListener() to register a handler function.

Properties

bubbles readonly True if the event is of a type that bubbles.
cancelable readonly True if the default action associated with the event can be canceled with preventDefault().
captures readonly True if this event can be captured.
currentTarget readonly The event target object which is currently handling the event. During capturing and bubbling, this is different from the property target.
detail readonly The click count for a mouse-click event.
eventPhase readonly The current phase of event propagation; one of none, target, capture, bubble.
target readonly The event target object for this event.
timeStamp readonly The date and time at which the event occurred.
type readonly The name of the event that this object represents.
view readonly The ScriptUI element that this event relates to.

Constructors

UIEvent readonly Creates an event.

Methods

initEvent readonly Initializes a UI event as a core W3C event.
initUIEvent readonly Initializes an event.
preventDefault readonly Prevents the default action associated with this event from being called.
stopPropagation readonly Stops the propagation of this event.