Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<body>
<h1>Change accent-color with JavaScript</h1>
<label for="file">Downloading progress:</label>
<progress id="file" value="72" max="100"> 72% </progress>
<p>Click the "Try it" button to set the accent-color property to "red":</p>
<button onclick="myFunction()">Try it</button>
<script>
function myFunction() {
  document.getElementById("file").style.accentColor="red";
}
</script>
</body>
<!-- Mirrored from www.mdssup.ma/cssref/tryit.asp?filename=trycss4_js_accent-color by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 05 Sep 2022 15:14:52 GMT -->
</html>