THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

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