HTML DOM InputEvent data Property
The InputEvent data property is used to return the character that was inserted using the event. The InputEvent data property is a read-only property and it returns a string representing the character that was inserted. Syntax:event.dataReturn Value: It returns the input data from a text field. Below