HTML DOM Meter Object

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

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 Sets or returns the value of the value attribute in the gauge.

Standard Properties and Events

Meter Object Supports StandardsPropertiesAndEvents.

Related Pages

HTML Reference Manual:HTML <meter> Tag