IE is randomly minimizing when a link is clicked

后端 未结 4 1124
时光取名叫无心
时光取名叫无心 2021-01-12 05:18

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 w

4条回答
  •  说谎
    说谎 (楼主)
    2021-01-12 05:41

    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.

提交回复
热议问题