HTML DOM Progress max property
Examples
Modify the maximum value of the progress bar:
document.getElementById ( "myProgress") max = "50".;
try it"
Definition and Usage
max property sets or returns the property value of the progress bar max.
max attribute describes the progress bar to complete the tasks required value.
Note: <progress> element is added.
Browser Support
Internet Explorer 10, Firefox, Opera, Chrome, and Safari 6 browser support position property.
Note: Internet Explorer 9 and earlier versions of IE do not support the value property.
grammar
Returns max attributes:
progressObject .max
Setting max attributes:
progressObject .max= number
Property Value
value | description |
---|---|
number | It describes the value of all the tasks required to complete |
technical details
return value: | Float, indicating the completion of all tasks required value |
---|
More examples
Examples
Get the maximum value of the progress bar:
var x = document.getElementById("myProgress").max;
x The output is: 100
try it"
Related Pages
HTML Reference Manual: HTML <Progress> MAX Properties
Progress Objects