<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>