奇怪的弹出行为| IE 6.xx与其他所有内容相比 [英] strange popup behaviour | IE 6.xx vs. everything else

查看:54
本文介绍了奇怪的弹出行为| IE 6.xx与其他所有内容相比的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问候 -


我有很多网站利用用户产生的弹出窗口

点击链接。没什么特别的 - 这是典型的代码:


< a href =" popup.html" target =" pop_win"

onClick =" msgWindow = window.open('''',''pop_win'',

''resizable = no,width = 600,高度= 300 '')">点击这里< / a>

现在,这与Mozilla,Firefox,Opera完美配合 - 一切都好

除了好老的IE 6.xx(6.0.29,在我的主要上)机)。当我尝试这个

链接IE时,我得到以下错误(在一个小弹出窗口中)。


行:146

字符:1

错误:课程未注册

代码:0

网址:包含上述代码的网页的网址


任何想法是什么问题? IE为何如此胡思乱想?太容易了

只是怪微美元,但当80-90%的用户仍在使用IE / b $ b时,很难忽视。

Greetings -

I have a number of websites that make use of popups spawned by a user
clicking a link. Nothing fancy - here is typical code:

<a href="popup.html" target="pop_win"
onClick="msgWindow=window.open('''',''pop_win'',
''resizable=no,width=600,height=300'')"> click here</a>
Now, this works perfectly with Mozilla, Firefox, Opera - everything
except good old IE 6.xx (6.0.29, on my main machine). When I try this
link with IE, I get the following errors (in a little popup window).

Line: 146
Char: 1
Error: class not registered
Code: 0
URL: URL of the page with the preceding code

Any ideas what the problem is? Why is IE being so cranky? Too easy
just to blame Micro$oft, but when 80-90% of your users are still using
IE, its hard to ignore.

推荐答案

oft,但当80-90%的用户仍在使用

IE时,很难忽视。
oft, but when 80-90% of your users are still using
IE, its hard to ignore.


一个线索 - 对于笑话我试图在另一台机器上使用稍早版本的IE浏览器加载同一页面 - 确切地说是6.0.28。

工作正常。 升级到6.0.29与SP2升级有关,而且需要

Windows XP。


所以,我在猜*那个一些安全*升级相关的
带有SP2的
可以防止一些Javascripts在以前的工作中工作。


OK - 无论这是否是一件好事,更多

实际问题是 - 什么是有效的解决方法?有什么建议吗?


Thansk提前...
A clue - for grins I tried loading the same page using a slightly
earlier version of IE on another machine - 6.0.28, to be precise.
Works fine. The ''upgrade'' to 6.0.29 is related to the SP2 upgrade with
Windows XP.

So, I''m *guessing* that some of the security *upgrades" associated
with SP2 prevents some Javascripts from working that used to work.

OK - regardless of whether or not this is a good thing, the more
practical question is - what is a valid workaround? Any suggestions?

Thansk in advance...


IE的新版本(终于!)内置了弹出窗口阻止程序,这个

阻止程序(最后!)默认打开。


解决方法是停止使用弹出窗口。您的处置中有整个浏览器

屏幕。无论你要说什么和表演,它都足以说明并向你的b / b $ b $访客展示。
The new releases of IE have (finally!) a built-in popup blocker, and this
blocker (finally!) is turned on by default.

The workaround would be to stop using popups. You have the entire browser
screen in your disposition. It is plenty enough to say and show to your
visitors whatever you have to say and show.


这篇关于奇怪的弹出行为| IE 6.xx与其他所有内容相比的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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