HTML DOM Meter Object |
Meter Object
The Meter object is new in HTML5.
The Meter object represents an HTML <meter> element.
Accessing a Meter Object
You can use getElementById() to access a <meter> element:
var x = document.getElementById("myMeter");
Creating a Meter Object
You can use the document.createElement() method to create a <meter> element:
var x = document.createElement("METER");
Meter Object Properties
| Property | Description |
|---|---|
| high | Sets or returns the value of the high attribute of the meter. |
| labels | Returns a list of the <label> elements of the meter. |
| low | Sets or returns the value of the low attribute of the meter. |
| max | Sets or returns the value of the max attribute of the meter. |
| min | Sets or returns the value of the min attribute of the meter. |
| optimum | Sets or returns the value of the optimum attribute of the meter. |
| value | Sets or returns the value of the value attribute of the meter. |
Standard Properties and Events
The Meter object also supports standard properties and events.
Related Articles
HTML Reference: HTML <meter> Tag
YouTip