Progress position attribute

Definition and Usage

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

The value of this property is the current value ( value property specified) divided by the maximum value ( max property The result of specifying) divided by the maximum value (

Note:This property is read-only.

See also:

HTML Reference Manual:HTML <progress> Tag

Example

Get the current position of the progress bar:

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

Try it yourself

Grammar

progressObject.position

Technical Details

Return Value: A floating-point number representing the current position of the progress bar.

Browser Support

The numbers in the table indicate the first browser version that fully supports this attribute.

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
Support 10.0 Support 6.0 Support