InputEvent() constructor creates a new
event = new InputEvent(typeArg, inputEventInit);
- Is a
DOMStringrepresenting the name of the event.
InputEventInitdictionary, having the following fields:
inputType: (Optional) A string specifying the type of change for editible 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).
dataTransfer: (Optional) A
DataTransferobject containing information about richtext or plaintext data being added to or removed from editible content.
isComposing: (Optional) A boolean indicating that the event is part of a composition session, meaning it is after a
compositionstartevent but before a
compositionendevent. The default is
ranges: (Optional) An array of static ranges that will be affected by a change to the DOM if the input event is not canceled.
BCD tables only load in the browser
InputEvent, the interface of the objects it constructs.