Progress max-eigenschap
Definitie en gebruik
max
Stel in of geef de waarde van de max-eigenschap van de voortgangsbalk terug.
max-eigenschap van <progress> Bepaal hoeveel werk er in totaal nodig is voordat een taak als voltooid wordt beschouwd.
Zie ook:
HTML reference manual:HTML <progress> tag
Voorbeeld
Voorbeeld 1
Verbeter de maximale waarde van de voortgangsbalk:
document.getElementById("myProgress").max = "50";
Voorbeeld 2
Haal de maximale waarde van de voortgangsbalk op:
var x = document.getElementById("myProgress").max;
Syntax
Geef max-eigenschap terug:
progressObject.max
Stel max-eigenschap in:
progressObject.max = number
eigenschapswaarde
waarde | 描述 |
---|---|
number | Specifies the total amount of work required for the task to be considered complete. |
Technical details
Return value: | A floating-point number indicating the total amount of work required for the task. |
---|
Browser support
The numbers in the table indicate the first browser version that fully supports this attribute.
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | 10.0 | Support | 6.0 | Support |
Related pages
HTML reference manual:HTML <progress> max attribute