Input Range focus() Method
Example
Give focus to a slider control:
document.getElementById("myRange").focus();
Try it Yourself »
Definition and Usage
The focus() method is used to give focus to a slider control.
Tip: Use the blur() method to remove focus from a slider control.
Browser Support
| Method | |||||
|---|---|---|---|---|---|
| focus() | Yes | Yes | Yes | Yes | Yes |
Syntax
rangeObject.focus()
Parameters
| None. |
Technical Details
| Return Value: | No return value |
|---|
❮ Input Range Object

