Meter optimum attribute
Definition and Usage
optimum
Attribute sets or returns the value of the gauge Optimum attribute Value.
The optimum attribute specifies the range of values that the gauge's value is considered to be the best.
See also:
HTML Reference Manual:HTML <meter> optimum Attribute
HTML Reference Manual:HTML <meter> Tag
Instance
Example 1
Return the value of the optimum attribute in the gauge:
var x = document.getElementById("myMeter").optimum;
Example 2
Change the value of the optimum attribute in the gauge:
document.getElementById("myMeter").optimum = "0.7";
Syntax
Return the optimum attribute:
meterObject.optimum
Set the optimum attribute:
meterObject.optimum = number
Attribute Value
Value | Description |
---|---|
number | Specifies the floating-point number as the optimal value of the gauge. |
Technical Details
Return Value: | A floating-point number representing the optimal 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 |