onchange without click on another location
<p>I used onchange on an input element, but the event handler function won't run until the field loses focus.</p>

<p>I want the function in onchange to run in real time. Onkeyup doesn't seem to be a solution, because it will trigger the function when any key is pressed, even if it doesn't change the field contents (for example, <kbd>SHIFT</kbd> and <kbd>CTRL</kbd>).</p>

<p>What should I do?</p>
