Progress max Property
Change the maximum value in a progress bar:
Definition and Usage
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.
Note: The <progress> element is new in HTML5.
The max property is supported in Internet Explorer 10, Firefox, Opera, Chrome, and Safari 6.
Note: The max property is not supported in Internet Explorer 9 and earlier versions.
Return the max property:
Set the max property:
|number||Specifies how much work the task requires in total before it can be considered complete|
|Return Value:||A floating point number, representing how much work the task requires in total|
Get the maximum value of a progress bar:
The result of x will be:
HTML reference: HTML <progress> max attribute