Progress maxProperty
Examples
Change the maximum value of the progress bar:
document.getElementById("myProgress").max="50";
Try it Yourself »
Definition and Usage
The max property is used to set or return the value of the progress bar's max attribute.
The max property describes the value required for the progress bar to complete a work task.
Note:The <progress> element is newly added.
Browser Support
![]()
![]()
![]()
![]()
![]()
Internet Explorer 10, Firefox, Opera, Chrome, and Safari 6 support the position property.
Note:Internet Explorer 9 and earlier IE versions do not support the value property.
Syntax
Return the max property:
progressObject.max
Set the max property:
progressObject.max=number
Property Values
| Value | Description |
|---|---|
| number | Describes the value required to complete all tasks |
Technical Details
| Return value: | Floating point, representing the value required to complete all tasks |
|---|
More Examples
Examples
Get the maximum value of the progress bar:
var x = document.getElementById("myProgress").max;
xThe output result is:100
Try it Yourself »
Related Pages
HTML Reference Manual:HTML <progress> max Property
Progress Object Other Extensions