Progress max Property
Example
Change the maximum value in a progress bar:
document.getElementById("myProgress").max = "50";
Try it Yourself »
Description
The max property sets or returns the value of the max attribute of a progress bar.
The max attribute specifies how much work the task requires in total before it can be considered complete.
Browser Support
Property | |||||
---|---|---|---|---|---|
max | Yes | 10.0 | Yes | 6.0 | Yes |
Syntax
Return the max property:
progressObject.max
Set the max property:
progressObject.max = number
Property Values
Value | Description |
---|---|
number | Specifies how much work the task requires in total before it can be considered complete |
Technical Details
Return Value: | A floating point number, representing how much work the task requires in total |
---|
More Examples
Example
Get the maximum value of a progress bar:
var x = document.getElementById("myProgress").max;
Try it Yourself »
Related Pages
HTML reference: HTML <progress> max attribute
❮ Progress Object