HTML DOM Meter min Property
THE WORLD'S LARGEST WEB DEVELOPER SITE

Meter min Property

❮ Meter Object

Example

Change the value of the min attribute in a gauge:

document.getElementById("myMeter").min = "20";
Try it Yourself »

Definition and Usage

The min property sets or returns the value of the min attribute in a gauge.

The min attribute specifies the lower bound of the gauge, and the value must be less than the max attribute value.

If unspecified, the default value is 0.

Tip: The min attribute, together with the max attribute, specifies the full range of the gauge.


Browser Support

Property
min Yes Not supported Yes 6.0 Yes

Syntax

Return the min property:

meterObject.min

Set the min property:

meterObject.min = number

Property Values

Value Description
number Specifies a floating point number that is the minimum value of the gauge. Default value is "0"

Technical Details

Return Value: A Number, representing a floating point number that is the minimum value of the gauge

More Examples

Example

Return the value of the max attribute in a gauge:

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

Related Pages

HTML reference: HTML <meter> min attribute


❮ Meter Object