Progress positionProperty
Example
Get the current value of the progress bar:
var x = document.getElementById("myProgress").position;
xThe output result is:0.22
Try it Yourself »
Definition and Usage
The position property returns the current progress of the progress bar.
This property reflects the current progress position, which is the value of value / max.
Note:This property is read-only.
Note:The <progress> element is new in HTML5.
Browser Support
![]()
![]()
![]()
![]()
![]()
Internet Explorer 10, Firefox, Opera, Chrome, and Safari 6 browsers support the position property.
Note:Internet Explorer 9 and earlier IE versions do not support the value property.
Syntax
progressObject.position
Technical Details
| Return value: | A floating-point number representing the progress of the current task |
|---|
Progress Object Other Extensions