This article is in need of a technical review.
A basic event interface for all user interface events
28
Introduced
Gecko 1.0
Inherits from:
nsIDOMEvent
Last changed in Gecko 9.0 (Firefox 9.0 / Thunderbird 9.0 / SeaMonkey 2.6)The DOM UIEvent represents simple user interface events.
Method overview
void initUIEvent(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in views::AbstractView viewArg, in long detailArg); |
Attributes
| Attribute | Type | Description |
detail |
long |
Detail about the event, depending on the type of event. Read only. |
view |
views::AbstractView |
A view which generated the event. Read only. |
Methods
initUIEvent
Initializes the UIEvent object.
void initUIEvent(
in DOMString typeArg,
in boolean canBubbleArg,
in boolean cancelableArg,
in views::AbstractView viewArg,
in long detailArg
);
Parameters
-
typeArg - The type of UI event.
-
canBubbleArg - Whether or not the event can bubble.
-
cancelableArg - Whether or not the event can be canceled.
-
viewArg -
Specifies the
viewattribute value. This may benull. -
detailArg - Specifies the detail attribute value.
Specification
Browser compatibility
| Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
|---|---|---|---|---|---|
| Basic support | (Yes) | (Yes) | ? | ? | ? |
| Feature | Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
|---|---|---|---|---|---|
| Basic support | ? | (Yes) | ? | ? | ? |