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

InputEvent()

The InputEvent() constructor creates a new InputEvent.

Syntax

 event = new InputEvent(typeArg, inputEventInit);

Values

typeArg
Is a DOMString representing the name of the event.
inputEventInitOptional
Is a InputEventInit dictionary, having the following fields:
  • "isComposing", optional and defaulting to false, of type Boolean, that is the if the event is part of a composition session, after the compositionstart event and before compositionend.

The InputEventInit dictionary also accepts fields from UIEventInit and from EventInit dictionaries.

Specifications

Specification Status Comment
Document Object Model (DOM) Level 3 Events Specification
The definition of 'InputEvent()' in that specification.
Working Draft Initial definition.

Browser compatibility

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

See also

  • InputEvent, the interface of the objects it constructs.

Document Tags and Contributors

 Contributors to this page: fscholz, teoli
 Last updated by: fscholz,