JavaScript Window focus()
JavaScript Window focus()
The focus() method is used to set focus to a window. It is the opposite of the blur() method in which we remove focus on the window. It can be used to make a request to bring a window to the front.
Syntax:-
Its syntax is:- window.focus()