English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Window blur() Method

JavaScript Window Object

blur()The method removes the focus from the current window.

The blur() method on the program is equivalent to the user moving the focus away from the current window.

Usagefocus()The method sets the focus to the current window.

Syntax:

window.blur()
var popupWindow = window.open("https://www.oldtoolbag.com");
popupWindow.blur();
Test See‹/›

Browser Compatibility

All browsers fully support the blur() method:

Method
blur()YesYesYesYesYes

Technical Details

Return Value:None

Related References

Window (Window) Reference:focus() Method

JavaScript Window Object