Input Search blur() method

Definition and Usage

blur() The method is used to remove focus from the search field.

Tip:Use focus() method Focus can be placed on the search field.

Example

Remove Focus from Search Field:

document.getElementById("mySearch").blur();

Try It Yourself

Syntax

searchObject.blur()

Parameters

None.

Technical Details

Return Value:

No Return Value.

Browser Support

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
Support Support Support Support Support