YouTip LogoYouTip

Prop Progress Max

HTML DOM Progress max Property

HTML DOM Progress max Property

-- Learning is not just about technology, but also about dreams!

JavaScript Reference

Overview

JavaScript Objects

Browser Objects

DOM Objects

HTML Objects

Progress max Property

Progress Object Reference Progress Object

Example

Change the max value of the progress bar:

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

Try it yourself Β»


Definition and Usage

The max property sets or returns the value of the max attribute of a progress bar.

The max attribute describes how much work the progress bar task requires.

Note: The <progress> element is new in HTML5.


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

The max property is supported in Internet Explorer 10, Firefox, Opera, Chrome, and Safari 6.

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 how much work the task requires

Technical Details

Return Value: A floating-point number, indicating how much work the task requires

More Examples

Example

Get the max value of the progress bar:

var x = document.getElementById("myProgress").max;

The x variable will be:

100

Try it yourself Β»

Related Pages

HTML Reference: HTML <progress> max Attribute


Progress Object Reference Progress Object

ByteDance Coding Plan supports mainstream large models such as Doubao, GLM, DeepSeek, Kimi, MiniMax, officially supplied, stable and reliable.

Xunfei Xingchen Coding Plan includes free model call quotas, DeepSeek, GLM, Kimi, MiniMax, one-stop experience and deployment platform. Configuration Guide Β₯3.9/month Subscribe Now

← Dom Obj TrackPython3 Stdlib β†’