Fires when the object loses the input focus.
No return value.
The DISPID for this event is defined in mshtmdid.h. Use this value to identify the event handler when implementing IDispatch::Invoke.
Bubbles No Cancels No To invoke
- Click the mouse on the document background or another control.
- Use the keyboard to navigate from one object to the next.
- Invoke the blur method when an object has focus.
- Switch focus to a different application or open a second window.
Default action Switches focus away from the object on which the event is fired.
The HTMLAnchorEvents::onblur event fires on the original object before the HTMLAnchorEvents::onfocus or onclick event fires on the object that is receiving focus. Where applicable, the HTMLAnchorEvents::onblur event fires after the onchange event.
Use the focus events to determine when to prepare an object to receive or validate input from the user.
As of Microsoft Internet Explorer 5, you must set the tabIndex attribute of elements that expose the HTMLAnchorEvents::onblur event.
For Internet Explorer 5 and later, the HTMLAnchorEvents::onblur event is asynchronous.