THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML DOM Meter Object


Meter Object

The Meter Object is new in HTML5.

The Meter object represents an HTML <meter> element.

Note: The <meter> element is not supported in Internet Explorer or Safari 5, and earlier versions.

Access a Meter Object

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

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

Create a Meter Object

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

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

Meter Object Properties

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

Standard Properties and Events

The Meter object also supports the standard properties and events.


Related Pages

HTML reference: HTML <meter> tag