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

HTML DOM blur() Method

HTML DOM Element Object

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

Usagefocus()The method assigns focus to the element.

Syntax:

HTMLElement.blur()
document.getElementById('myText').blur();
Test See </›

Browser Compatibility

All browsers fully support the blur() method:

Method
blur()YesYesYesYesYes

Technical Details

Return Value:None

Related References

HTML DOM Reference:focus() method

HTML DOM Element Object