--- title: GlobalEventHandlers.oninput slug: Web/API/GlobalEventHandlers/oninput translation_of: Web/API/GlobalEventHandlers/oninput ---
Обработчик события input
в окне. Событие ввода возникает при изменении значения элемента {{HTMLElement ("input")}}.
Это событие пузырится. Если он поддерживается в окне, он поддерживается и в {{HTMLElement ("input")}}.
<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.">
Specification | Status | Comment |
---|---|---|
{{SpecName("HTML WHATWG", "forms.html#event-input-input", "oninput")}} | {{Spec2("HTML WHATWG")}} | Initial definition |
{{CompatibilityTable}}
Feature | Chrome | Edge | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|---|
Basic support | {{CompatVersionUnknown}} | {{CompatVersionUnknown}} | 2 | 9 | 10 | {{CompatVersionUnknown}} |
Feature | Android | Android Webview | Edge | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile | Chrome for Android |
---|---|---|---|---|---|---|---|---|
Basic support | {{CompatUnknown}} | {{CompatVersionUnknown}} | {{CompatVersionUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatVersionUnknown}} | {{CompatVersionUnknown}} |