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.
After clicking on focus button:
After clicking on blur button:
Supported Browsers: The browser supported by blur() method are listed below:
- Google Chrome
- Internet Explorer
Attention reader! Don’t stop learning now. Get hold of all the important Comcompetitivepetitve Programming concepts with the Web Design for Beginners | HTML course.