Change the value of the max attribute in a gauge:
The max property sets or returns the value of the max attribute in a gauge.
The max attribute specifies the upper bound of the gauge, and the value must be greater than the min attribute value.
If unspecified, the default value is 1.
Tip: The max attribute, together with the min attribute, specifies the full range of the gauge.
The max property is supported in Firefox, Opera, Chrome, and Safari 6.
Return the max property:
Set the max property:
Value | Description |
---|---|
number | Specifies a floating point number that is the maximum value of the gauge. Default value is "1" |
Return Value: | A Number, representing a floating point number that is the maximum value of the gauge |
---|
Return the value of the max attribute in a gauge:
The result of x will be:
HTML reference: HTML <meter> max attribute