Obiekt postępu HTML DOM
Obiekt postępu
Obiekt Progress reprezentuje element HTML <progress>.
Element <progress> reprezentuje postęp zadania.
Uzyskaj dostęp do obiektu postępu
Możesz uzyskać dostęp do elementu <progress> za pomocą getElementById():
Przykład
var x = document.getElementById("myProgress");
Utwórz obiekt postępu
Możesz utworzyć element <progress> za pomocą metody document.createElement():
Przykład
var x = document.createElement("PROGRESS");
Właściwości obiektu postępu
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 |
Standardowe właściwości i zdarzenia
Obiekt Progress obsługuje również standardowe właściwości i zdarzenia .
Powiązane strony
Odniesienie HTML: tag HTML <progress>