Search code examples
javascriptinternet-explorer-7minimize

IE is randomly minimizing when a link is clicked


I have the bizarre problem. When I click on a link in IE7 the window minimizes. It seems to only be a subset of the links on the page. It also doesn't consistently happen with the same link and differs from computer to computer.

example link text:
<a hidefocus="on" href="#" tabindex="1"><span unselectable="on" id="extdd-102">Canadian Legislation</span></a>

Anyone seen this before or have any idea what might be causing it?


Solution

  • Finally figured it out. It was actually a custom JavaScript click handler that caused the problem.

    My click handler was calling activeElement.blur(); on the current active element (so that events tied to blur fired when the elements were destroyed).

    Problem is in IE, if you call blur on anything that isn't an INPUT, it minimizes the window.