您的位置:首页 > 运维架构

关于window.open被IE屏蔽的问题

2008-01-14 16:41 369 查看
关于window.open被IE屏蔽的问题

测试如下:

1.打开一个新的窗口,这是一个默认的,即为target="_blank"

<html>

<head>

<title>test</title>

</head>

<body onload="window.open('http://www.sz3w.cn')">

test

</body>

</thml>

这个IE提示阻止了一个弹出窗口...

2.跳转到别人页面,但不新增加窗口,target="self"(本身),target="_top"(嵌套页的当前整页),这样就不会屏蔽了

<html>

<head>

<title>test</title>

</head>

<body onload="window.open('http://www.sz3w.cn',"_self")">

test

</body>

</thml>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: