HTML | DOM blur() Method
The DOM blur method is used to remove the keyboard focus from the current element and also give focus with the help of focus() method. We can apply the blur to any element and enable it by doing some operation. For example, we can blur to text-box by clicking a button.
Before clicking on focus button:
After clicking on blur button:
Supported Browsers: The browser supported by blur() method are listed below:
- Google Chrome
- Internet Explorer