Input Text blur() method
Example
Remove the focus from a text field:
document.getElementById("myText").blur();
Try it »
Definition and Usage
The blur() method is used to remove the focus from a text field.
Tip: If you need to set the focus to the text field, use focus() method.
Browser support

All major browsers support the blur() method.
Syntax
textObject
.blur()
Parameters
| None. |
|---|
Technical details
| Return Value: | No return value |
|---|
The Input Text object