HTML DOM Meter optimum properties
Examples
Returns metrics optimum value of the property:
var x = document.getElementById("myMeter").optimum;
x The output is:
0.5
try it"
Definition and Usage
optimum property sets or returns a measure of optimum value of the property.
optimum attribute specifies the metric is defined as the optimal value range.
Browser Support
In addition to Internet Explorer, the other major browsers support optimum properties.
Note: Safari version 5 and earlier do not support the optimum properties.
grammar
Back optimum properties:
meterObject .optimum
Set the optimum properties:
meterObject .optimum= number
Property Value
值 | 描述 |
---|---|
number | 规定一个表示度量的最优值的浮点数。 |
technical details
return value: | Number, a floating-point number represents optimal value metric. |
---|
More examples
Examples
Change metric optimum value of the property:
document.getElementById("myMeter").optimum="0.7";
try it"
related articles
HTML Reference Manual: HTML <Meter> Optimum properties