Easy Tutorial
❮ Prop Error Name Prop Textarea Maxlength ❯

Progress value Attribute

Progress Object

Example

Modify the value of the current progress bar:

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

Definition and Usage

The value attribute is used to set or return the value of the progress bar'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 Explorer 10, Firefox, Opera, Chrome, and Safari 6 support the value attribute.

Note: Internet Explorer 9 and earlier versions do not support the value attribute.


Syntax

Return the value attribute:

Set the value attribute:

Attribute Values

Value Description
number Describes the progress of the progress bar

Technical Details

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


More Examples

Example

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

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

Related Pages

HTML Reference: HTML <progress> value Attribute

❮ Prop Error Name Prop Textarea Maxlength ❯