YouTip LogoYouTip

Prop Progress Position

HTML DOM Progress position Property

HTML DOM Progress position Property

Definition and Usage

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

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

Note: This property is read-only.

Note: The <progress> element is new in HTML5.

Browser Support

The position property is supported in Internet Explorer 10, Firefox, Opera, Chrome, and Safari 6.

Note: Internet Explorer 9 and earlier 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.

Example

Get the current value of the progress bar:

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

x output result:

0.22

Try it yourself Β»

← Dom Obj ProgressPython3 Class β†’