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