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 HTMLWindowEvents::onblur event fires on the original object before the HTMLWindowEvents::onfocus or onclick event fires on the object that is receiving focus. Where applicable, the HTMLWindowEvents::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 HTMLWindowEvents::onblur event.
For Internet Explorer 5 and later, the HTMLWindowEvents::onblur event is asynchronous.