Input Text blur()Method
Examples
Remove focus from the text field:
document.getElementById("myText").blur();
Try it yourself »
Definition and Usage
The blur() method is used to remove focus from the text field.
Tip:To give focus to a text field, use thefocus()method.
Browser Support
![]()
All major browsers support the blur() method.
Syntax
textObject.blur()
Parameters
| None. |
Technical Details
| Return value: | No return value |
|---|
Input Text Object Other Extensions