Change the value of the value attribute in a gauge:
The value property sets or returns the value of the value attribute in a gauge.
The value attribute specifies the current, or "measured", value of the gauge, and must be between the min and max attribute values.
The value attribute is a required attribute for the <meter> tag.
The value property is supported in Firefox, Opera, Chrome, and Safari 6.
Return the value property:
Set the value property:
Value | Description |
---|---|
number | Specifies a floating point number that is the current value of the gauge |
Return Value: | A Number, representing a floating point number that is the current value of the gauge |
---|
Return the value of the value attribute in a gauge:
The result of x will be:
HTML reference: HTML <meter> value attribute