Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM Progress position Property

Progress position Property

Progress Object Reference Progress Object

Example

Get the current value of the progress bar:

var x = document.getElementById("myProgress").position;

x

The output is:

0.22

Try it »


Definition and Usage

The position property returns the current progress of the progress bar.

This property reflects the position of the current progress, which is the value of value / max.

Note: This attribute is read-only.

Note: The element is newly added in HTML5.


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Internet Explorer 10, Firefox, Opera, Chrome, and Safari 6 support the position property.

**Note:** Internet Explorer 9 and earlier versions of IE 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 Reference Progress Object