<html>
<body>
Downloading progress:
<progress id="myProgress" value="22" max="100">
</progress>
<p>Click the button to change the value of the max attribute of the progress bar to "50".</p>
<button onclick="myFunction()">Try it</button>
<script>
function myFunction() {
document.getElementById("myProgress").max = "50";
}
</script>
</body>
<!-- /jsref/tryit.asp?filename=tryjsref_progress_max Thu, 06 Feb 2025 20:01:16 GMT -->
</html>