Window.blur()

Shifts focus away from the window.

Syntax

window.blur()

Example

window.blur();

Notes

The window.blur() method is the programmatic equivalent of the user shifting focus away from the current window.

Specification

Specification Status Comment
HTML Living Standard
The definition of 'Window.blur()' in that specification.
Living Standard  

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
blurChrome Full support 1Edge Full support 12Firefox Full support 1IE Full support 4Opera Full support ‚ȧ12.1Safari Full support 1WebView Android Full support 1Chrome Android Full support 18Firefox Android Full support 4Opera Android Full support ‚ȧ12.1Safari iOS Full support 1Samsung Internet Android Full support 1.0

Legend

Full support  
Full support