HTML DOM Progress Object
Progress Object
The Progress object is new in HTML5.
The Progress object represents an HTML
Accessing the Progress Object
You can access it by using getElementById()
var x = document.getElementById("myProgress");
Try it
Creating the Progress Object
You can use the document.createElement() method to create an 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