Objekt průběhu HTML DOM
Objekt pokroku
Objekt Progress představuje HTML prvek <progress>.
Prvek <progress> představuje průběh úkolu.
Přístup k objektu Progress
K prvku <progress> se dostanete pomocí getElementById():
Příklad
var x = document.getElementById("myProgress");
Vytvořte objekt Progress
Element <progress> můžete vytvořit pomocí metody document.createElement():
Příklad
var x = document.createElement("PROGRESS");
Vlastnosti objektu Progress
Property | Description |
---|---|
labels | Returns a list of the progress bar's labels (if any) |
max | Sets or returns the value of the max attribute of a progress bar |
position | Returns the current position of the progress bar |
value | Sets or returns the value of the value attribute of a progress bar |
Standardní vlastnosti a události
Objekt Progress také podporuje standardní vlastnosti a události .
Související stránky
HTML reference: HTML tag <progress>