HTMLElement.blur()

The HTMLElement.blur() method removes keyboard focus from the current element.

SyntaxEdit

elt.blur()

SpecificationEdit

Specification Status Comment
WHATWG HTML Living Standard
The definition of 'blur' in that specification.
Living Standard  
HTML5.1
The definition of 'blur' in that specification.
Working Draft  
HTML5
The definition of 'blur' in that specification.
Recommendation  
Document Object Model (DOM) Level 2 HTML Specification
The definition of 'blur' in that specification.
Recommendation  

Browser compatibilityEdit

In IE9-10, there is a bug where calling blur() on the <body> will switch the active application window away from the browser to a different application entirely.

See alsoEdit

Document Tags and Contributors

 Last updated by: cvrebert,