Prop Range Value
# HTML DOM Input Range value Property
[ Input Range Object](#)
## Example
Change the value of a slider control:
document.getElementById("myRange").value = "75";
[Try it Yourself Β»](#)
* * *
## Definition and Usage
The value property is used to set or return the value of the value attribute of a slider control.
The value property describes the value entered by the user, or the default value, or the value entered by a script.
* * *
## Browser Support

The value property is supported by all major browsers.
**Note:** Internet Explorer 9 and earlier IE versions do not support the HTML `` element with the `type="range"` attribute.
* * *
## Syntax
Return the value property:
_rangeObject_.value
Set the value property:
_rangeObject_.value=_number_
## Property Values
| Value | Description |
| --- | --- |
| _number_ | Describes the initial (default) value of the slider control. If not specified, the default value is "50" |
## Technical Details
| Return Value: | A string, representing a number |
| --- |
* * *
## More Examples
## Example
Get the value of a slider control:
```javascript
var x = document.getElementById("myRange").value;
The output of _x_ will be:
50
[Try it Yourself Β»](#)
* * *
## Related Pages
HTML Reference: [HTML `` value attribute](#)
* * Input Range Object](#)
YouTip