HTML DOM Progress Object

Progress Object

The Progress object is a new object in HTML5.

The Progress object represents the HTML <progress> element.

The <progress> element represents the progress of a task.

Access Progress Object

You can access the <progress> element by using getElementById():

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

Try it yourself

Create Progress Object

You can create a <progress> element by using the document.createElement() method:

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

Try it yourself

Progress Object Properties

Properties Description
labels Return the label list of the progress bar (if any).
max Set or return the max attribute value of the progress bar.
position Return the current position of the progress bar.
value Set or return the value attribute value of the progress bar.

Standard Properties and Events

Progress Object Supports StandardsPropertiesAndEvents.

Related Pages

HTML Reference Manual:HTML <progress> Tag