HTML onblur Event Attribute
Validate an input field when the user leaves it:
Try it yourself »
The onblur event attribute is supported in all major browsers.
Definition and Usage
The onblur attribute fires the moment that the element loses focus.
Onblur is most often used with form validation code (e.g. when the user leaves a form field).
Tip: The onblur attribute is the opposite of the onfocus attribute.
Differences Between HTML 4.01 and HTML5
|script||The script to be run on onblur|
HTML Event Attributes
Thank You For Helping Us!
Your message has been sent to W3Schools.