GO-V.ORG
As seen in

TextEvent: data property

UI Events

UI Events

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

## Browser compatibility

source: MDN Web Docs mirror · page

Cite this

"TextEvent: data property". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/Web/API/TextEvent/data

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·