html oninput
snippet in html

html oninput

user8364

<input type="text" oninput="myFunction()">