YouTip LogoYouTip

Prop Progress Value

HTML DOM Progress value Property

HTML DOM Progress value Property

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

JavaScript Reference Manual

Overview

JavaScript Objects

Browser Objects

DOM Objects

HTML Objects

Progress value Property

Progress Object Reference Manual Progress Object

Example

Change the current progress bar's value:

document.getElementById("myProgress").value="75";

Try it yourself Β»


Definition and Usage

The value property is used to set or return the value of the progress element's value attribute.

The value attribute describes the current progress of the progress bar.

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


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

The value 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

Return the value property:

progressObject.value

Set the value property:

progressObject.value=number

Property Values

Value Description
number Describes the progress of the progress bar

Technical Details

Return Value: A floating-point number representing the progress of the current task

More Examples

Example

Get the current value (progress) of the progress bar:

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

The x output will be:

75

Try it yourself Β»


Related Pages

HTML Reference: HTML <progress> value Attribute


Progress Object Reference Manual Progress Object

← Prop Track KindProp Track Default β†’