References

Collection of references for web development.

HTML oninput event

Description

Execute JavaScript code when the user inputs text.

Example

<div id="output"></div>
<input type="text" oninput="document.getElementById('output').innerHTML = this.value">