UIEvent

この記事は技術レビューを必要としています。

この記事はまだ日本語に翻訳されていません。MDN の翻訳はボランティアによって行われています。是非 MDN に登録し、私たちの力になって下さい。

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 view attribute value. This may be null.
detailArg
Specifies the detail attribute value.

Specification

DOM 3 Events: UIEvent

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) ? ? ?

See also

Document Tags and Contributors

Contributors to this page: Sheppy, kscarfone, ziyunfei, KYSergey, Masayuki, teoli
最終更新者: kscarfone,