Latest web development tutorials

HTML DOM Meter min property

Meter Object Reference Meter Object

Examples

Change the metric min attribute values:

document.getElementById("myMeter").min="20";

try it"

Definition and Usage

min property sets or returns a measure of the value of property min.

min attribute specifies the measure limit. This value must be less than max attribute value.

If no min attribute value, the default value is 0.

Tip: min and max attribute specifies the property along the full range of measurement.


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

In addition to Internet Explorer, the other major browsers support min property.

Note: Safari version 5 and earlier do not support the min property.


grammar

Returns min properties:

meterObject .min

Setting min properties:

meterObject .min= number

Property Value

描述
number 规定一个表示度量的最小值的浮点数。默认值是 "0"。

technical details

return value: Digital, represents a measure of the minimum float.


More examples

Examples

Returns metrics min attribute values:

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

x The output is:

0

try it"


related articles

HTML Reference Manual: HTML <Meter> min Properties


Meter Object Reference Meter Object