UIEvent()
 The UIEvent() constructor creates a new UIEvent. 
Syntax
event = new UIEvent(typeArg [, UIEventInit])
Values
- typeArg
-  Is a DOMStringrepresenting the name of the event.
- 
UIEventInitOptional
-  Is a UIEventInitdictionary, having the following fields:-  detail: optional and defaulting to0, of typelong, that is a event-dependant value associated with the event.UIEvent.detaillists the semantic for standard events.
-  view: optional and defaulting tonull, of typeWindowProxy, that is theWindowassociated with the event .
-  sourceCapabilities: An instance of theInputDeviceCapabilitiesinterface which provides information about the physical device responsible for generating a touch event.
 Note: The UIEventInitdictionary also accepts fields from theEventInitdictionary.
-  
Specifications
| Specification | 
|---|
| UI Events # dom-uievent-uievent | 
Browser compatibility
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
| UIEvent | 26 | 12 | 11 | No | 15 | 7 | 1 | 26 | 14 | 14 | 7 | 1.0 | 
See also
- 
UIEvent, the interface of the objects it constructs.
    © 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
    https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/UIEvent