Open a new window and set focus to it:
Open a new window and blur it:
Definition and Usage
focus() method sets focus to a window.
blur() method removes focus from a window.
focus() method makes a request to bring a window to the front.
It may not work as you expect, due to different user settings.
focus() is supported in all browsers: