Meter min attribute
Definition and usage
min
Attribute setting or returning the value of min attribute value.
The min attribute specifies the lower limit of the gauge, which must be less than the value of the max attribute.
If not specified, the default value is 0.
Tip:min attribute with max attribute Define the entire range of the gauge together.
See also:
HTML Reference Manual:HTML <meter> min Attribute
HTML Reference Manual:HTML <meter> Tag
Instance
Example 1
Change the value of the min attribute in the gauge:
document.getElementById("myMeter").min = "20";
Example 3
Return the value of the max attribute in the gauge:
var x = document.getElementById("myMeter").min;
Syntax
Return the min attribute:
meterObject.min
Set the min attribute:
meterObject.min = number
Attribute value
Value | Description |
---|---|
number | Specifies a floating-point number as the minimum value of the gauge. The default value is "0". |
Technical Details
Return Value: | A floating-point number representing the minimum value of the gauge. |
---|
Browser Support
The numbers in the table indicate the first browser version that fully supports this attribute.
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | Not Supported | Support | 6.0 | Support |