Run ❯
Get your
own
website
Result Size:
625 x 565
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <body> <h1>HTML DOM Events</h1> <h2>The oninput Event</h2> <p>How to dynamically update a slider value with oninput.</p> <input type="range" oninput="myFunction(this.value)"> <p id="demo"></p> <script> function myFunction(value) { document.getElementById("demo").innerHTML = value; } </script> </body> </html>