TextEvent: data property

Deprecated

Avoid using this feature in new projects. This feature may be a candidate for removal from web standards or browsers.

The data read-only property of the TextEvent interface returns the last character added to the input element.

Value

A string representing the event data. For textInput events, this is the character that was last entered.

Specifications

Specification
UI Events
# dom-textevent-data

Browser compatibility