GlobalEventHandlers.oninput
Обработчик события для input
event в окне. Событие ввода возникает при изменении значения элемента <input>
.
Это событие пузырится. Если он поддерживается в окне, он поддерживается и в <input>
.
Example
<script>
window.addEventListener('input', function (e) {
console.log("input event detected! coming from this element:", e.target);
}, false);
</script>
<input placeholder="type here and see console.">
Specifications
Specification | Status | Comment |
---|---|---|
HTML Living Standard Определение 'oninput' в этой спецификации. |
Живой стандарт | Initial definition |
Browser compatibility
We're converting our compatibility data into a machine-readable JSON format.
This compatibility table still uses the old format,
because we haven't yet converted the data it contains.
Find out how you can help!
Feature | Chrome | Edge | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|---|
Basic support | (Да) | (Да) | 2 | 9 | 10 | (Да) |
Feature | Android | Android Webview | Edge | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile | Chrome for Android |
---|---|---|---|---|---|---|---|---|
Basic support | ? | (Да) | (Да) | ? | ? | ? | (Да) | (Да) |
See also
- An HTML5 Browser maze, oninput support
- Fixing oninput in IE Using html5Widgets includes polyfill for IE6-8
- Mathias Bynens suggests binding to both input and keydown
- oninput event | dottoro has notes about bugginess in IE9
- Bug 312094 - Add support for <select oninput>