Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

UIEvent()

Nos bénévoles n'ont pas encore traduit cet article en Français. Aidez-nous à réaliser cette tâche !

The UIEvent() constructor creates a new UIEvent.

Syntax

 event = new UIEvent(typeArg, UIEventInit)

Values

typeArg
Is a DOMString representing the name of the event.
UIEventInitOptional
Is a UIEventInit dictionary, having the following fields:
  • detail: optional and defaulting to 0, of type long, that is a event-dependant value associated with the event. UIEvent.detail lists the semantic for standard events.
  • view: optional and defaulting to null, of type WindowProxy, that is the Window associated with the event .
  • sourceCapabilities:  An instance of the InputDeviceCapabilities interface which provides information about the physical device responsible for generating a touch event.

The UIEventInit dictionary also accepts fields from the EventInit dictionary.

Specifications

Specification Status Comment
InputDeviceCapabilities Editor's Draft Added sourceCapabilities property.
Document Object Model (DOM) Level 3 Events Specification
The definition of 'UIEvent()' in that specification.
Working Draft Initial definition.

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support (Yes) 11 (11) ? (Yes) ?
           
Feature Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support ? ? 11.0 (11) ? ? ?

See also

  • UIEvent, the interface of the objects it constructs.

Étiquettes et contributeurs liés au document

 Contributeurs à cette page : jpmedley, fscholz, teoli
 Dernière mise à jour par : jpmedley,