Using the `oninput` event handler with `onkeyup`/`onkeydown` as its fallback

1 · Mathias Bynens · May 11, 2011, 9:31 a.m.
HTML5 standardizes the oninput event handler, which should be used to detect user input in JavaScript. Sure, you could use onkeydown or onkeyup instead, but those were never really designed for this particular use case, and it shows....