![]() |
The Input Search focus() Method in HTML DOM is used to get focus to the Input search Field when an event occurs. Syntax: searchObject.focus(); Parameter: This method does not contain any parameter value. Return Value: It does not return any value. Example: The below example illustrates the use of the Input search focus() method in HTML DOM. HTML
Output: ![]() Input Search focus() Method Supported Browser:
|
Reffered: https://www.geeksforgeeks.org
HTML |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 12 |