This attribute fires at that moment when the element loses focus. This attribute is mostly used in Form validation code. This attribute is opposite of onfocus attribute.
<element onblur = "script">
Attribute Value: This attribute is used to any HTML elements. The script run when onblur attribute called.
Before clicking outside:
After clicking outside:
Supported Browsers: The browser supported by onblur attribute are listed below:
- Google Chrome
- Internet Explorer