关于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>
测试如下:
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>
相关文章推荐
- 关于window.open被IE屏蔽的问题
- 关于window.open被IE屏蔽的问题
- 解决ie的window.open的referer丢失问题。
- window.open关于浏览器拦截问题分析及解决方法
- 解决ie的window.open的referer丢失问题。
- 另外可以用 window.open 的方法屏蔽 IE 的所有菜单
- window.open关于浏览器拦截问题
- IE下 Window.Open(url,name), name参数空格、符号问题
- 关于window.open弹出窗口有无标题栏的问题
- window.open 会被IE阻止的问题
- IE中用window.open() 新开页面,有时会丢失Session 的问题。
- 关于 prototype-window 在 prototype 1.6 下的 ie下报错问题
- window.open关于浏览器拦截问题分析及解决方法
- [工作问题总结]window.open导致IE自动关闭问题总结[1]
- window.open 会被IE阻止的问题
- IE中用window.open() 新开页面,有时会丢失Session 的问题
- 关于javascript 中用window.open()打开多个窗口的问题
- [工作问题总结]window.open导致IE自动关闭问题总结[2]
- IE中用window.open() 新开页面,有时会丢失Session 的问题
- 关于window.open的问题