Meter optimum Property
Example
Return the value of the optimum property of the meter:
var x = document.getElementById("myMeter").optimum;
x The output is:
0.5
Try it »
Definition and Usage
The optimum property sets or returns the value of the optimum property of the meter.
The optimum property specifies the range in which the meter value is classified as the optimal value.
Browser support





All major browsers except Internet Explorer support the optimum property.
**Note:** Safari 5 and earlier versions do not support the optimum property.
Syntax
Return the optimum property:
meterObject
.optimum
Set the optimum property:
meterObject
.optimum=
number
Attribute values
| Value | Description |
|---|---|
| number | Specifies a floating-point number representing the optimal value of the meter. |
Technical Details
| Return Value: | Number, a floating-point number representing the optimal value of the meter. |
|---|
More examples
Example
Change the value of the optimum property in the meter:
document.getElementById("myMeter").optimum="0.7";
Try it »
Related Articles
HTML Reference Manual:HTML
Meter Object