Oggetto misuratore DOM HTML
Oggetto metro
L'oggetto Meter rappresenta un elemento HTML <meter>.
Nota: l'elemento <misuratore> non è supportato in Internet Explorer/Edge o Safari 5 (e versioni precedenti).
Accedi a un oggetto contatore
Puoi accedere a un elemento <meter> usando getElementById():
Esempio
var x = document.getElementById("myMeter");
Crea un oggetto metro
Puoi creare un elemento <meter> usando il metodo document.createElement():
Esempio
var x = document.createElement("METER");
Proprietà dell'oggetto misuratore
Property | Description |
---|---|
high | Sets or returns the value of the high attribute in a gauge |
labels | Returns a list of <label> elements that are labels for the gauge |
low | Sets or returns the value of the low attribute in a gauge |
max | Sets or returns the value of the max attribute in a gauge |
min | Sets or returns the value of the min attribute in a gauge |
optimum | Sets or returns the value of the optimum attribute in a gauge |
value | Sets or returns the value of the value attribute in a gauge |
Proprietà ed eventi standard
L'oggetto Meter supporta anche le proprietà e gli eventi standard .
Pagine correlate
Riferimento HTML: tag HTML <meter>