GlobalEventHandlers.oninput

Обработчик события input (en-US) в окне. Событие ввода возникает при изменении значения элемента <input>.

Это событие пузырится. Если он поддерживается в окне, он поддерживается и в <input>.

Example

html
<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
UI Events
# event-type-input
HTML Standard
# handler-oninput

Совместимость с браузерами

BCD tables only load in the browser

See also