HTML | DOM InputEvent data Property
The InputEvent data property in HTML DOM 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.
Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML course.
Return Value: It returns the input data from a text field.
Below program illustrates the InputEvent data Property in HTML:
Supported Browsers: The browser supported by InputEvent data property are listed below:
- Google Chrome
- Apple Safari