English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
blur()The method removes keyboard focus from the current element.
Usagefocus()The method assigns focus to the element.
HTMLElement.blur()
document.getElementById('myText').blur();Test See </›
All browsers fully support the blur() method:
Method | |||||
blur() | Yes | Yes | Yes | Yes | Yes |
Return Value: | None |
---|
HTML DOM Reference:focus() method