HTML DOM Meter min Property
Example
Change the value of the min attribute in a meter:
document.getElementById("myMeter").min="20";
Definition and Usage
The min property sets or returns the value of the min attribute of a meter.
The min attribute specifies the lower limit of the meter. The value must be less than the value of the max attribute.
If the min attribute is not specified, the default value is 0.
Tip: The min attribute, together with the max attribute, defines the full range of the meter.
Browser Support
The min property is supported in all major browsers except Internet Explorer.
Note: The min property is not supported in Safari 5 and earlier versions.
Syntax
Return the min property:
meterObject.min
Set the min property:
meterObject.min=number
Property Values
| Value | Description |
|---|---|
| number | Specifies a floating-point number representing the minimum value of the meter. The default value is "0". |
Technical Details
| Return Value: | A number, a floating-point number representing the minimum value of the meter. |
|---|
More Examples
Example
Get the value of the min attribute in a meter:
var x = document.getElementById("myMeter").min;
The x variable will be:
0
Related Articles
HTML Reference: HTML <meter> min Attribute
YouTip