YouTip LogoYouTip

Prop Meter Value

# Meter value Property [![Image 8: Meter Object Reference](#) Meter Object](#) ## Example Change the value of the value attribute in the meter: document.getElementById("myMeter").value="50"; [Try it Yourself Β»](#) * * * ## Definition and Usage The value property sets or returns the value of the value attribute in the meter. The value property is required, specifying the current value of the meter. The value must be between the values of the min and max attributes. * * * ## Browser Support ![Image 9: Internet Explorer](#)![Image 10: Firefox](#)![Image 11: Opera](#)![Image 12: Google Chrome](#)![Image 13: Safari](#) All major browsers support the value property, except Internet Explorer. **Note:** Safari 5 and earlier versions do not support the value property. * * * ## Syntax Return the value property: _meterObject_.value Set the value property: _meterObject_.value=_number_ ## Property Values | Value | Description | | --- | --- | | _number_ | A floating-point number specifying 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: var x = document.getElementById("myMeter").value; The _x_ output will be: 65 [Try it Yourself Β»](#) * * * ## Related Articles HTML Reference Manual: [HTML value attribute](#) * * Meter Object](#)
← Dom Obj OlProp Meter Optimum β†’