Window: blur() method
Shifts focus away from the window.
Syntax
js
blur()
Parameters
None.
Return value
None (undefined).
Examples
js
window.blur();
Notes
The window.blur() method is the programmatic equivalent of the user shifting focus away from the current window.
Specifications
| Specification |
|---|
| HTML Standard # dom-window-blur |
Browser compatibility
BCD tables only load in the browser