The InputEvent
interface represents an event notifying of editable content change.
Constructor
InputEvent()
- Creates an
InputEvent
object.
Properties
This interface inherits properties from its parents, UIEvent
and Event
.
InputEvent.data
Read only- Returns a
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- Returns a
Boolean
value indicating if the event is fired aftercompositionstart
and beforecompositionend
.
Methods
This interface doesn't implement specific methods, but inherits methods from its parents, UIEvent
and Event
.
Specifications
Specification | Status | Comment |
---|---|---|
Document Object Model (DOM) Level 3 Events Specification The definition of 'InputEvent' in that specification. |
Working Draft | Initial definition. |