Progress valueProperty
Examples
Modify the current progress bar value:
document.getElementById("myProgress").value="75";
Try it Yourself »
Definition and Usage
The value property sets or returns the value of the value attribute of the progress bar.
The value property describes how much progress the current progress bar has made.
Note:The <progress> element is new in HTML5.
Browser Support
![]()
![]()
![]()
![]()
![]()
Internet Explorer 10, Firefox, Opera, Chrome, and Safari 6 support the value property.
Note:Internet Explorer 9 and earlier versions of IE do not support the value property.
Syntax
Return the value property:
progressObject.value
Set the value property:
progressObject.value=number
Property Values
| Value | Description |
|---|---|
| number | Describes how much progress the progress bar has made |
Technical Details
| Return value: | A floating-point number representing the current task's progress |
|---|
More Examples
Example
Get the current value (progress) of the progress bar:
var x = document.getElementById("myProgress").value;
xThe output result is:75
Try it Yourself »
Related Pages
HTML Reference Manual:HTML <progress> value Attribute
Progress Object Other Extensions