Oggetto di avanzamento HTML DOM
Oggetto di avanzamento
L'oggetto Progress rappresenta un elemento HTML <progress>.
L'elemento <progress> rappresenta lo stato di avanzamento di un'attività.
Accedi a un oggetto di avanzamento
Puoi accedere a un elemento <progress> usando getElementById():
Esempio
var x = document.getElementById("myProgress");
Crea un oggetto di avanzamento
Puoi creare un elemento <progress> usando il metodo document.createElement():
Esempio
var x = document.createElement("PROGRESS");
Proprietà dell'oggetto di avanzamento
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 |
Proprietà ed eventi standard
L'oggetto Progress supporta anche le proprietà e gli eventi standard .
Pagine correlate
Riferimento HTML: tag HTML <progress>