![]() |
VOOZH | about |
The Input Text focus() method in HTML DOM is used to get focus to the text field when the event occurs.
Syntax:
textObject.focus()
Parameters: This method does not contain any parameter values.
Return Value: It does not return any value.
Example: Below program illustrates the use of the input text focus() method in HTML DOM.
Output:
Supported Browsers: