HTMLMeterElement : HTMLElement
Return to: HTML DOM Level 5 index

Represents a scalar measurement within a known range, or a fractional value; for example disk usage, the relevance of a query result, or the fraction of a voting population to have selected a particular candidate.

Constructors

Constructor Action Mozilla Chrome Safari Opera IE Netscape
HTMLMeterElement Constructor() : HTMLMeterElement
Creates an instance of the HTMLMeterElement.
Show Details no no no no no no

HTMLMeterElement() : HTMLMeterElement

Creates an instance of the HTMLMeterElement.

Returns
HTMLMeterElement

Visibility
internal

Properties

Property Action Mozilla Chrome Safari Opera IE Netscape
value : Number
Specifies the value to have the gauge indicate as the "measured" value.
Show Details no no no no no no
Availability

WhatWG

min : Number
Specifies the lower bound of the range.
Show Details no no no no no no
Availability

WhatWG

max : Number
Specifies the upper bound of the range.
Show Details no no no no no no
Availability

WhatWG

low : Number
Specifies the range that is considered to be the "low" part.
Show Details no no no no no no
Availability

WhatWG

high : Number
Specifies the range that is considered to be the "high" part.
Show Details no no no no no no
Availability

WhatWG

optimum : Number
Specifies the position that is "optimum".
Show Details no no no no no no
Availability

WhatWG

form : HTMLFormElement
Used to explicitly associate the meter element with its form owner.
Show Details no no no no no no
Availability

WhatWG

labels : NodeList
Returns a NodeList of all the label elements that the form control is associated with.
Show Details no no no no no no
Availability

WhatWG

Inherited Functions

Method Action Mozilla Chrome Safari Opera IE Netscape
getElementsByClassName(String classNames) : NodeList
Returns a NodeList containing all the Element nodes with the specified classNames.
Show Details 1.9+ 5.0+ 3.1+ 9.51+ no no

Parameters
String classNames (one-or-more)A string representing the class name(s) of the elements to return. Multiple class names should be separated by spaces.

Returns
NodeList

Using getElementsByClassName

                        	                    document.getElementById("useCases").getElementsByClassName("question");

Would return a NodeList of all elements inside the element with the id "useCases" to which the class "question" applies.

                        	                    document.getElementById("useCases").getElementsByClassName("question issue");

Would return a NodeList of all elements inside the element with the id "useCases" to which both the classes "question" and "issue" apply.

Remarks

Returns a list of child elements to which the specified className applies. The returned NodeList is sorted in tree order (the order the elements were found during a depth-first preorder traversal through the node tree).

See Also

Document.getElementsByClassName|Element.getElementsByClassName|HTMLDocument.getElementsByClassName

Availability

HTML 5|W3C|W3C

References

HTMLMeterElement

Availability

JavaScript 1.2|WhatWG

text_javascript aptana_docs