Table of Contents

DOM - Input Event

About

The input event fires when the value has changed of one of this input element:

Demo

input

With an input

<input type="text">
document.querySelector("input").addEventListener("input", function(){
   console.log("The input event has fired for the value: "+this.value);
});