Easy Tutorial
❮ Jsref Regexp Begin Prop Canvas Miterlimit ❯

Meter value Attribute

Meter Object

Example

Change the value of the value attribute in the meter:


Definition and Usage

The value attribute sets or returns the value of the value attribute in the meter.

The value attribute is required and specifies the current value of the meter. This value must be between the min and max attribute values.


Browser Support

All major browsers support the value attribute except Internet Explorer.

Note: Safari 5 and earlier versions do not support the value attribute.


Syntax

Return the value attribute:

Set the value attribute:

Attribute Values

Value Description
number Specifies a floating-point number representing the current value of the meter.

Technical Details

| Return Value: | A number, a floating-point number representing the current value of the meter. | | --- | --- |


More Examples

Example

Return the value of the value attribute in the meter:

x Output result:


Related Articles

HTML Reference: HTML <meter> value Attribute


Meter Object

❮ Jsref Regexp Begin Prop Canvas Miterlimit ❯