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