The InputEvent
interface represents an event notifying of editable content change.
InputEvent()
InputEvent
object.This interface inherits properties from its parents, UIEvent
and Event
.
InputEvent.data
Read only
DOMString
with the inserted characters. This may be empty string if the change doesn't cause inserting text, e.g., deleting characters.InputEvent.isComposing
Read only
Boolean
value indicating if the event is fired after compositionstart
and before compositionend
.This interface doesn't implement specific methods, but inherits methods from its parents, UIEvent
and Event
.
Specification | Status | Comment |
---|---|---|
Document Object Model (DOM) Level 3 Events Specification The definition of 'InputEvent' in that specification. | Working Draft | Initial definition. |
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|
Basic support | No support | 31.0 (31.0) | No support | No support | No support |
data | No support | No support | No support | No support | No support |
isComposing() | No support | 31.0 (31.0) | No support | No support | No support |
Feature | Android | Firefox Mobile (Gecko) | IE Phone | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
Basic support | No support | 31.0 (31.0) | No support | No support | No support |
data | No support | No support | No support | No support | No support |
isComposing() | No support | 31.0 (31.0) | No support | No support | No support |
© 2005–2017 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/InputEvent