THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML

Input Range focus() Method

Input Range Object Reference Input Range Object

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 Reference Input Range Object