Objeto de medidor HTML DOM
Objeto Medidor
O objeto Meter representa um elemento HTML <meter>.
Observação: o elemento <meter> não é compatível com Internet Explorer/Edge ou Safari 5 (e versões anteriores).
Acessar um objeto de medidor
Você pode acessar um elemento <meter> usando getElementById():
Exemplo
var x = document.getElementById("myMeter");
Criar um objeto de medidor
Você pode criar um elemento <meter> usando o método document.createElement():
Exemplo
var x = document.createElement("METER");
Propriedades do objeto do medidor
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 |
Propriedades e eventos padrão
O objeto Meter também suporta as propriedades e eventos padrão .
Páginas relacionadas
Referência HTML: tag HTML <meter>