Latest web development tutorials

HTML DOM Meter objects

Meter Object

Meter objects are new in HTML5.

Meter object represents an HTML <meter> element.

Object Access Meter

You can use getElementById () to access the <meter> element:

var x = document.getElementById("myMeter"); 尝试一下

Create Object Meter

You can use the document.createElement () method to create <meter> element:

var x = document.createElement("METER"); 尝试一下

Meter Object Properties

属性 描述
high 设置或返回度量中 high 属性的值。
labels 返回度量的 <label> 元素的列表。
low 设置或返回度量中 low 属性的值。
max 设置或返回度量中 max 属性的值。
min 设置或返回度量中 min 属性的值。
optimum 设置或返回度量中 optimum 属性的值。
value 设置或返回度量中 value 属性的值。

Standard properties and events

Meter objects also supports standard attributes and events .


related articles

HTML Reference Manual: HTML <Meter> tag