UIEvent

  • Revision slug: DOM/UIEvent
  • Revision title: UIEvent
  • Revision id: 35545
  • Created:
  • Creator: KYSergey
  • Is current revision? No
  • Comment 1 words added, 1 words removed

Revision Content

{{ IFSummary("dom/interfaces/events/nsIDOMUIEvent.idl", "nsIDOMEvent", "Scriptable", "9.0", "A basic event interface for all user interface events", "1.0") }}

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

{{ CompatibilityTable() }}

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support {{ CompatVersionUnknown() }} {{ CompatVersionUnknown() }} {{ CompatUnknown() }} {{ CompatUnknown() }} {{ CompatUnknown() }}
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support {{ CompatUnknown() }} {{ CompatVersionUnknown() }} {{ CompatUnknown() }} {{ CompatUnknown() }} {{ CompatUnknown() }}

See also

  • {{ domxref("Event") }}
wiki.languages({
  "zh-cn": "zh-cn/DOM/UIEvent"
});

Revision Source

<p>{{ IFSummary("dom/interfaces/events/nsIDOMUIEvent.idl", "nsIDOMEvent", "Scriptable", "9.0", "A basic event interface for all user interface events", "1.0") }}</p>
<p>The DOM <code>UIEvent</code> represents simple user interface events.</p>
<h2 id="Method_overview">Method overview</h2>
<table class="standard-table"> <tbody> <tr> <td><code>void initUIEvent(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in views::AbstractView viewArg, in long detailArg);<br> </code></td> </tr> </tbody>
</table>
<h2 id="Attributes">Attributes</h2>
<table class="standard-table" style="width: auto;"> <tbody> <tr> <td class="header">Attribute</td> <td class="header">Type</td> <td class="header">Description</td> </tr> <tr> <td><code>detail<br> </code></td> <td><code>long<br> </code></td> <td>Detail about the event, depending on the type of event. <strong>Read only.</strong></td> </tr> <tr> <td><code>view</code></td> <td><code>views::AbstractView</code></td> <td>A view which generated the event. <strong>Read only.</strong></td> </tr> </tbody>
</table>
<h2 id="Methods">Methods</h2>
<h3 id="initUIEvent">initUIEvent</h3>
<p>Initializes the UIEvent object.</p>
<pre><code>void initUIEvent(
  in DOMString typeArg,
  in boolean canBubbleArg,
  in boolean cancelableArg,
  in views::AbstractView viewArg,
  in long detailArg
);</code>
</pre>
<h6 id="Parameters">Parameters</h6>
<dl> <dt><code>typeArg</code></dt> <dd>The type of UI event.</dd> <dt><code>canBubbleArg</code></dt> <dd>Whether or not the event can bubble.</dd> <dt><code>cancelableArg</code></dt> <dd>Whether or not the event can be canceled.</dd> <dt><code>viewArg</code></dt> <dd>Specifies the <code>view</code> attribute value. This may be <code>null</code>.</dd> <dt><code>detailArg</code></dt> <dd>Specifies the detail attribute value.</dd>
</dl>
<h2 class="editable" id="Specification"><span>Specification</span></h2>
<p><a class="external" href="http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html#events-UIEvent" rel="external" target="_blank" title="http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html#events-UIEvent">DOM 3 Events: UIEvent</a></p>
<h2 id="Browser_compatibility">Browser compatibility</h2>
<p>{{ CompatibilityTable() }}</p>
<div id="compat-desktop"> <table class="compat-table"> <tbody> <tr> <th>Feature</th> <th>Chrome</th> <th>Firefox (Gecko)</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari</th> </tr> <tr> <td>Basic support</td> <td>{{ CompatVersionUnknown() }}</td> <td>{{ CompatVersionUnknown() }}</td> <td>{{ CompatUnknown() }}</td> <td>{{ CompatUnknown() }}</td> <td>{{ CompatUnknown() }}</td> </tr> </tbody> </table>
</div>
<div id="compat-mobile"> <table class="compat-table"> <tbody> <tr> <th>Feature</th> <th>Android</th> <th>Firefox Mobile (Gecko)</th> <th>IE Mobile</th> <th>Opera Mobile</th> <th>Safari Mobile</th> </tr> <tr> <td>Basic support</td> <td>{{ CompatUnknown() }}</td> <td>{{ CompatVersionUnknown() }}</td> <td>{{ CompatUnknown() }}</td> <td>{{ CompatUnknown() }}</td> <td>{{ CompatUnknown() }}</td> </tr> </tbody> </table>
</div>
<h2 class="editable" id="See_also"><span>See also</span></h2>
<ul> <li>{{ domxref("Event") }}</li>
</ul>
<pre class="script" style="font-size: 16px;">wiki.languages({
  "zh-cn": "zh-cn/DOM/UIEvent"
});
</pre>
Revert to this revision