HTML | onblur Attribute
This attribute fires at that moment when the element loses focus. This attribute is mostly used in Form validation code. This attribute is the opposite of onfocus attribute.
Supported Tags: It supports all HTML elements except these elements which are given below :
<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