当点击链接时,IE随机最小化 [英] IE is randomly minimizing when a link is clicked

查看:90
本文介绍了当点击链接时,IE随机最小化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个奇怪的问题。当我点击IE7中的链接时,窗口最小化。它似乎只是页面上链接的一个子集。它也不会始终发生在相同的链接上,并且因计算机而异。

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.

示例链接文字:

< a hidefocus =onhref =#tabindex =1 >< span unselectable =onid =extdd-102>加拿大立法< / span>< / a>

之前有人看过这个或者知道可能导致它的原因吗?

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

推荐答案

最后想出来了。它实际上是导致问题的自定义JavaScript点击处理程序

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

我的点击处理程序正在调用 activeElement.blur( ); 在当前活动元素上(以便在元素被销毁时触发与模糊相关的事件)。

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

问题出现在IE中,如果你在任何非INPUT上调用模糊,它会使窗口最小化。

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

这篇关于当点击链接时,IE随机最小化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆