When one object loses activation and another object becomes the IHTMLDocument2::activeElement, the HTMLLinkElementEvents2::onfocus event fires on the object becoming the IHTMLDocument2::activeElement only after the HTMLLinkElementEvents2::onblur event fires on the object losing activation. Use the focus events to determine when to prepare an object to receive input from the user.

As of Microsoft Internet Explorer 5, elebrowserments retain focus within the current history when the user returns to a page. To avoid firing the HTMLLinkElementEvents2::onfocus event unintentionally for an element when the document loads, invoke the IHTMLElement2::focus method on another element.

As of Internet Explorer 5, you can force elements that do not implicitly receive focus to receive focus by adding them to the document tabbing order using the IHTMLElement2::tabIndex attribute.