Input Text focus()Method
Definition and Usage
The focus() method is used to give focus to a text field.
Tip:Useblur()method to make the text field lose focus.
Browser Support
![]()
All major browsers support the focus() method.
Syntax
textObject.focus()
Parameters
| None. |
Technical Details
| Return Value: | No return value |
|---|
Input Text Object Other Extensions