updating h1 tag using input events javascript code example Example: html oninput <input type="text" oninput="myFunction()">