HTML – onblur Event
The onblur event fires when a form field loses focus, and is often used with form validation. The onblur event is the opposite of the onfocus event.
The onblur event fires when a form field loses focus, and is often used with form validation. The onblur event is the opposite of the onfocus event.
The onchange event fires when the value of the element is changed by the user and the element loses focus.
The oncontextmenu event fires when the user right-clicks on an element to open the context menu.
The onfocus event fires when a form field gains focus when as user clicks into it. The onfocus event is the opposite of the onblur event.
The onfocusin event fires when a form field is about to gain focus as the user clicks into it. The onfocusin event is the opposite of the onfocusout event.
The onfocusout event fires when a form field is about to lose focus as the user clicks out of it. The onfocusout event is the opposite of the onfocusin event.
The oninput event fires when the value of an HTML <input> or <textarea> element is first input or is changed.
The oninvalid event fires when an <input> element is invalid (e.g., if the required attribute is set and the field is empty).
The onreset event fires when the user resets the form by clicking the reset button.
The onsearch event fires when a user presses the “enter” key or clicks the “x” button in an <input> element with type=”search”.
The onselect event fires after text has been selected in an HTML <input> or <textarea> element.
The onsubmit event fires when the user submits the form by clicking the submit button.