Meter minProperty

Meter 对象参考手册Meter Object

Examples

Change the value of the min attribute in a measurement:

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 measurement.

The min attribute specifies the lower bound of a measurement. This value must be less than the max attribute value.

If the min attribute value is not specified, the default value is 0.

Tip:The min attribute, together with the max attribute, specifies the complete range of a measurement.


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Except for Internet Explorer, all major browsers support the min attribute.

Note:Safari 5 and earlier versions do not support the min attribute.


Syntax

Return the min attribute:

meterObject.min

Set the min attribute:

meterObject.min=number

Property Values

Value Description
number Specifies a floating-point number representing the minimum value of a measurement. The default value is "0".

Technical Details

Return Value: A Number, a floating-point number representing the minimum value of a measurement.


More Examples

Example

Return the value of the min attribute in a measurement:

var x = document.getElementById("myMeter").min;

xThe output result is:

0

Try it Yourself »


Related Articles

HTML Reference Manual:HTML <meter> min attribute


Meter 对象参考手册Meter Object

Other Extensions