YouTip LogoYouTip

Prop Progress Position

HTML DOM Progress position Property

HTML DOM Progress position Property

-- Learning is not just about technology, but also about dreams!

JavaScript Reference

Overview

JavaScript Objects

Browser Objects

DOM Objects

HTML Objects

<param>

<q>

Progress position Property

Progress Object Reference Progress Object

Example

Get the current value of the progress bar:

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

x 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 ExplorerFirefoxOperaGoogle ChromeSafari

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

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

Progress Object Reference Progress Object

← Prop Track DefaultDom Obj Track β†’