Obiekt miernika HTML DOM
Miernik obiektu
Obiekt Meter reprezentuje element HTML <meter>.
Uwaga: element <meter> nie jest obsługiwany w przeglądarce Internet Explorer / Edge lub Safari 5 (i wcześniejszych wersjach).
Uzyskaj dostęp do obiektu miernika
Możesz uzyskać dostęp do elementu <meter> za pomocą getElementById():
Przykład
var x = document.getElementById("myMeter");
Utwórz obiekt licznika
Możesz utworzyć element <meter> za pomocą metody document.createElement() :
Przykład
var x = document.createElement("METER");
Właściwości obiektu miernika
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 |
Standardowe właściwości i zdarzenia
Obiekt Meter obsługuje również standardowe właściwości i zdarzenia .
Powiązane strony
Odniesienie HTML: tag HTML <meter>