Fires for the current element with focus immediately after moving focus to another element.
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 Yes Cancels No To invoke Default action N/A
Each document may have up to one active element. Set the active element with the IHTMLElement3::setActive or IHTMLControlElement::focus methods. Using the IHTMLElement3::setActive method has no effect on document focus. Using the IHTMLControlElement::focus method on an individual element causes the element to gain focus and become the active element, and this causes HTMLFrameSiteEvents::onfocusout to fire for this active element.
Using the IHTMLControlElement::focus method on a document that does not have the focus moves the document to the front of the display. Additionally, the document's active element gains focus, and this causes HTMLFrameSiteEvents::onfocusout to fire for this active element.
For a given display, only one element has focus at any given time. Striking a key directly affects only the element with focus. Events fired by that keystroke may be scripted to affect other documents and child elements.
With Microsoft Internet Explorer 5.5 and later, focus on a document and the active element of a document can be managed separately. Use the HTMLFrameSiteEvents::onfocusout event to manage formatting changes when an element loses focus.