Объект HTML DOM Meter
Объект измерения
Объект Meter представляет HTML-элемент <meter>.
Примечание. Элемент <meter> не поддерживается в Internet Explorer/Edge или Safari 5 (и более ранних версиях).
Доступ к объекту счетчика
Вы можете получить доступ к элементу <meter> с помощью getElementById():
Пример
var x = document.getElementById("myMeter");
Создайте объект счетчика
Вы можете создать элемент <meter> с помощью метода document.createElement():
Пример
var x = document.createElement("METER");
Свойства измерительного объекта
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 |
Стандартные свойства и события
Объект Meter также поддерживает стандартные свойства и события .
Связанные страницы
Справочник по HTML: HTML-тег <meter>