WebIDLpedia

UIEvent interface

Definition

UI Events defines UIEvent

[Exposed=Window]
interface UIEvent : Event {
  constructor(DOMString type, optional UIEventInit eventInitDict = {});
  readonly attribute Window? view;
  readonly attribute long detail;
};

partial interface UIEvent {
  // Deprecated in this specification
  undefined initUIEvent(DOMString typeArg,
    optional boolean bubblesArg = false,
    optional boolean cancelableArg = false,
    optional Window? viewArg = null,
    optional long detailArg = 0);
};

partial interface UIEvent {
  // The following support legacy user agents
  readonly attribute unsigned long which;
};

This interface is extended in the following specifications:

Consolidated IDL (across mixin and partials)
[Exposed=Window]
interface UIEvent : Event {
  constructor(DOMString type, optional UIEventInit eventInitDict = {});
  readonly attribute Window? view;
  readonly attribute long detail;
  // Deprecated in this specification
  undefined initUIEvent(DOMString typeArg,
    optional boolean bubblesArg = false,
    optional boolean cancelableArg = false,
    optional Window? viewArg = null,
    optional long detailArg = 0);
  // The following support legacy user agents
  readonly attribute unsigned long which;
  readonly attribute InputDeviceCapabilities? sourceCapabilities;
};

Methods and attributes that return objects implementing UIEvent

Referring IDL interfaces/dictionaries

Referring specifications