Latest web development tutorials
 

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

Internet Explorer Firefox Opera Google Chrome Safari

The min property is supported in Firefox, Opera, Chrome, and Safari 6.


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;

The result of x will be:

0
Try it Yourself »

Related Pages

HTML reference: HTML <meter> min attribute


< Meter Object