--- title: GlobalEventHandlers.oninput slug: Web/API/GlobalEventHandlers/oninput translation_of: Web/API/GlobalEventHandlers/oninput ---
{{ApiRef("HTML DOM")}}

Обработчик события input в окне. Событие ввода возникает при изменении значения элемента {{HTMLElement ("input")}}.

Это событие пузырится. Если он поддерживается в окне, он поддерживается и в {{HTMLElement ("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
{{SpecName("HTML WHATWG", "forms.html#event-input-input", "oninput")}} {{Spec2("HTML WHATWG")}} Initial definition

Browser compatibility

{{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}}

See also