A RetroSearch Logo

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

Search Query:

Showing content from http://developer.mozilla.org/en-US/docs/Web/API/InputEvent/InputEvent below:

InputEvent: InputEvent() constructor - Web APIs

InputEvent: InputEvent() constructor

Baseline Widely available

The InputEvent() constructor creates a new InputEvent object.

Syntax
new InputEvent(type)
new InputEvent(type, options)
Parameters
type

A string with the name of the event. It is case-sensitive and browsers set it to beforeinput, or input.

options Optional

An object that, in addition of the properties defined in UIEvent(), can have the following properties:

inputType Optional

A string specifying the type of change for editable content such as, for example, inserting, deleting, or formatting text.

data Optional

A string containing characters to insert. This may be an empty string if the change doesn't insert text (such as when deleting characters, for example).

isComposing Optional

A boolean indicating that the event is part of a composition session, meaning it is after a compositionstart event but before a compositionend event. The default is false.

Return value

A new InputEvent object.

Specifications Browser compatibility See also

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