I currently have a slider and a box next to it, in which I would like to display the current value of the slider. I want the value in the box to continuously change as I drag the slider from 0 - 100. Which DOM event best describes this sort of event? Currently I have it on click off so it updates the value in the box after I finish moving the slider.
let text1 = document.getElementById("sliderText1");
let slider1 = document.getElementById("slider1");
text1.textContent = slider1.value + "%";
slider1.addEventListener("mouseup",function(){
text1.textContent = slider1.value + "%"
});
<!DOCTYPE HTML>
<html>
<head>
<title></title>
</head>
<body>
<div style="float:left";>
<input type="range" id="slider1" min="0" max="100" value="50">
</div>
<div style = "float:left;">
<p id = "sliderText1" style = "margin-top: 2px; margin-left: 2px; border-style: solid"></p>
</div>
<script src="script.js"></script>
</body>
</html>