Easy Tutorial
❮ Prop Audio Buffered Prop Anchor Type ❯

Progress max Attribute

Progress Object

Example

Modify the maximum value of the progress bar:

document.getElementById("myProgress").max="50";

Definition and Usage

The max attribute is used to set or return the value of the progress bar's max attribute.

The max attribute describes the value required for the progress bar to complete its task.

Note: The <progress> element is new.


Browser Support

Internet Explorer 10, Firefox, Opera, Chrome, and Safari 6 support the max attribute.

Note: Internet Explorer 9 and earlier versions do not support the max attribute.


Syntax

Return the max attribute:

Set the max attribute:

Attribute Values

Value Description
number Describes the value required to complete all tasks

Technical Details

| Return Value: | Floating-point number, representing the value required to complete all tasks | | --- | --- |


More Examples

Example

Get the maximum value of the progress bar:

Related Pages

HTML Reference: HTML <progress> max Attribute


❮ Prop Audio Buffered Prop Anchor Type ❯