UIEvent : Event

Provides contextual information associated with User Interface-related events.

Browser/User Agent Support

IEMozillaNetscapeOperaSafariNetscapte
no1.0+7.0+7.0+1.0+no

Constructors

ConstructorIEMozillaNetscapeOperaSafariNetscapte
Provides contextual information associated with User Interface-related events.
no1.0+7.0+7.0+1.0+no
 

Properties

PropertyIEMozillaNetscapeOperaSafariNetscapte
Numeric detail related to the event.
no1.75+7.0+no1.0+no
  • Mozilla: Incorrect on Windows.
Window that generated the event.
no1.0+7.0+7.0+1.0+no
 

Methods

MethodIEMozillaNetscapeOperaSafariNetscapte
Sets the initial property values for a new UIEvent object.
no1.0+7.0+7.0+1.0+no
 

References

Event | MouseEvent

Availability

HTML DOM Level 2 | W3C

Constructor Detail

UIEvent UIEvent()

Provides contextual information associated with User Interface-related events.

Visibility
internal

Property Detail

Number detail - read only

Numeric detail related to the event.

For examples, see the quirksmode test page:

http://www.quirksmode.org/js/events/detail.html

Availability

HTML DOM Level 2 | W3C

AbstractView view - read only

Window that generated the event.

Availability

HTML DOM Level 2 | W3C

Method Detail

initUIEvent(String typeArg, Boolean canBubbleArg, Boolean cancelableArg, AbstractView viewArg, Number detailArg) : void

Sets the initial property values for a new UIEvent object.

StringtypeArgType of event.
BooleancanBubbleArgIf true, the event should bubble by default.
BooleancancelableArgIf true, the event is cancellable by default.
AbstractViewviewArgWindow or frame for the event.
NumberdetailArgCode for the event detail.

Availability

HTML DOM Level 2 | W3C