Window.blur()

Summary

Shifts focus away from the window.

Syntax

JavaScript
window.blur()

Example

JavaScript
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
WHATWG HTML Living Standard
The definition of 'Window.blur()' in that specification.
Living Standard  

License

© 2016 Mozilla Contributors
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-us/docs/web/api/window/blur

API DOM Gecko Method