HTML DOM Meter Obheto

Meter object

The Meter object is a new object in HTML5.

The Meter object represents the HTML <meter> element.

Access Meter object

You can access the <meter> element by using getElementById():

var x = document.getElementById("myMeter");

Try it yourself

Create Meter object

You can create a <meter> element by using the document.createElement() method:

var x = document.createElement("METER");

Try it yourself

Meter object properties

属性 Description
high Set or return the value of the high attribute in the gauge.
labels Return the list of <label> elements that belong to the gauge marker.
low Set or return the value of the low attribute in the gauge.
max Set or return the value of the max attribute in the gauge.
min Set or return the value of the min attribute in the gauge.
optimum Set or return the value of the optimum attribute in the gauge.
value 设置或返回 gauge 中 value 属性的值。

标准属性和事件

Meter 对象支持标准属性事件

相关页面

HTML 参考手册:HTML <meter> 标签