Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM Meter Object

HTML DOM Meter Object


Meter Object

The Meter object is new in HTML5.

The Meter object represents an HTML .

Accessing the Meter Object

You can use getElementById() to access it element:

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

Try it

Creating the Meter Object

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

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

Try it

Meter Object Properties

property Description
high Sets or returns the value of the high attribute in the meter.
labels Returns the
low Sets or returns the value of the low attribute in the meter.
max Sets or returns the value of the max attribute in the meter.
min Sets or returns the value of the min attribute in the meter.
optimum Sets or returns the value of the optimum attribute in the meter.
value Sets or returns the value of the value attribute in the meter.

Standard properties and events

The Meter object also supports the standard property and Events.


Related Articles

HTML Reference Manual:HTML tag