Window blur() method
Window Object
Definition and Usage
The blur() method removes the keyboard focus from the top-level window.
Syntax
window.blur()
Browser support





All major browsers except Opera support the blur() method.
Example
Example
Ensure the new window does not get focus (send the new window to the background):
Try it »
More examples
Ensure the new window gets focus
Window Object