run javascript when typing

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

Also in JavaScript: