Progress value Property
Example
Change the current value in a progress bar:
document.getElementById("myProgress").value = "75";
Try it Yourself »
Description
The value property sets or returns the value of the value attribute of a progress bar.
The value attribute specifies how much of the task has been completed.
Browser Support
Property | |||||
---|---|---|---|---|---|
value | Yes | 10.0 | Yes | 6.0 | Yes |
Syntax
Return the value property:
progressObject.value
Set the value property:
progressObject.value = number
Property Values
Value | Description |
---|---|
number | Specifies how much of the task has been completed |
Technical Details
Return Value: | A floating point number, representing the current progress of the task |
---|
More Examples
Example
Get the current value of a progress bar:
var x = document.getElementById("myProgress").value;
Try it Yourself »
Related Pages
HTML reference: HTML <progress> value attribute
❮ Progress Object