YouTip LogoYouTip

Prop Progress Max

# HTML DOM Progress max Property [![Image 8: Progress Object Reference](#) Progress Object](#) ## Example Change the maximum 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 the amount of work required to complete the task. **Note:** The `` element is new in HTML5. * * * ## Browser Support ![Image 9: Internet Explorer](#)![Image 10: Firefox](#)![Image 11: Opera](#)![Image 12: Google Chrome](#)![Image 13: Safari](#) 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 the amount of work required to complete the task | ## Technical Details | Return Value: | A floating-point number, representing the amount of work required to complete the task | | --- | * * * ## More Examples ## Example Get the maximum value of the progress bar: var x = document.getElementById("myProgress").max; The _x_ output will be: 100 [Try it Yourself Β»](#) ## Related Pages HTML Reference: [HTML max attribute](#) * * Progress Object](#)
← Python3 ClassDom Obj Progress β†’