A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/dom/UIEvent/initUIEvent below:

initUIEvent ยท WebPlatform Docs

initUIEvent Summary

Initializes a new user interface event that the createEvent method created.

Method of dom/UIEventdom/UIEvent

Syntax
 event.initUIEvent();
Parameters eventType
Data-type
String

The name of the event. Sets the value for the type property. valid values are:

abort - An onabort event. error - An onerror event. load - An onload event. select - An onselect event. resize - An onresize event.

canBubble
Data-type
Boolean

Whether the event propagates upward. Sets the value for the bubbles property.

cancelable
Data-type
Boolean

Whether the event is cancelable and so preventDefault can be called. Sets the value for the cancelable property.

view
Data-type
DOM Node

The window on which this event is occurring. Sets the value for the view property.

detail
Data-type
Number

Specifies additional information. This value is returned in the detail property of the event.

Return Value

No return value

Examples
var evt = document.createEvent("UIEvents");



evt.initUIEvent("click", true, true, window, 1);
Related specifications
DOM Level 3 Events
Working Draft
Attributions

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4