Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM Progress Object

HTML DOM Progress Object


Progress Object

The Progress object is new in HTML5.

The Progress object represents an HTML .

element represents the progress of a task.

Accessing the Progress Object

You can access it by using getElementById() element:

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

Try it

Creating the Progress Object

You can use the document.createElement() method to create an element. element:

var x = document.createElement("PROGRESS");

Try it

Progress Object Properties

property Description
labels Returns the list of labels of the progress bar (if any)
max Sets or returns the value of the max attribute of the progress bar
position Returns the current position of the progress bar
value Sets or returns the value of the value attribute of the progress bar

Standard properties and events

The Progress object also supports the standard property and Events.


Related Articles

HTML Reference Manual: HTML tag