Progress value attribute
Definition and Usage
value
Attribute sets or returns the value of the progress bar's value attribute.
<progress> value attribute Specifies how much of the task has been completed.
HTML Reference Manual:HTML <progress> Tag
Instance
Example 1
Update the current value of the progress bar:
document.getElementById("myProgress").value = "80";
Example 2
Get the current value of the progress bar:
var x = document.getElementById("myProgress").value;
Syntax
Return the value attribute:
progressObject.value
Set the value attribute:
progressObject.value = number
Attribute Value
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. |
---|
Browser Support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | 10.0 | Support | 6.0 | Support |
Related Pages
HTML Reference Manual:HTML <progress> value Attribute