X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY ANGULAR XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

Meter optimum Property

Meter Object Reference Meter Object

Example

Return the value of the optimum attribute in a gauge:

var x = document.getElementById("myMeter").optimum;

The result of x will be:

0.5

Try it yourself »


Definition and Usage

The optimum property sets or returns the value of the optimum attribute in a gauge.

The optimum attribute specifies the range where the gauge's value is considered to be an optimal value.


Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The optimum property is supported in Firefox, Opera, Chrome, and Safari 6.


Syntax

Return the optimum property:

meterObject.optimum

Set the optimum property:

meterObject.optimum=number

Property Values

Value Description
number Specifies a floating point number that is the optimal value of the gauge

Technical Details

Return Value: A Number, representing a floating point number that is the optimal value of the gauge


More Examples

Example

Change the value of the optimum attribute in a gauge:

document.getElementById("myMeter").optimum = "0.7";

Try it yourself »


Related Pages

HTML reference: HTML <meter> optimum attribute


Meter Object Reference Meter Object

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates FREE Website Templates Free HTML Templates

SHARE THIS PAGE

facebook