HTML DOM Progress Object
Progress Object
Die Progress-objek verteenwoordig 'n HTML <vordering>-element.
Die <vordering>-element verteenwoordig die vordering van 'n taak.
Toegang tot 'n Progress Object
Jy kan toegang tot 'n <vordering>-element kry deur getElementById():
Voorbeeld
var x = document.getElementById("myProgress");
Skep 'n Progress Object
Jy kan 'n <progress> element skep deur die document.createElement() metode te gebruik:
Voorbeeld
var x = document.createElement("PROGRESS");
Progress Object Properties
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 |
Standaard eiendomme en geleenthede
Die Progress-objek ondersteun ook die standaard eienskappe en gebeurtenisse .
Verwante bladsye
HTML verwysing: HTML <vordering> tag