关于页面被拦截的问题
2010-02-08 07:52
357 查看
- ie
2. TT
3. maxthon
chrome , firefox 默认安装是没有页面拦截的, 都有一些对应的插件
测试的时候不能在本地测试, 要把页面放到http 服务器上。
1. ie
页面拦截设为高, 所有方式都无法在新页打开。
拦截设为中, window.open , 直接写的页面上, new 一个a click,以及form submit 都可以打开页面, timeout 不能打开页面。
拦截设为低, 以上几种方式都可以打开。
ie6 submit 方式后会在url 后加上 ? 如http://www.baidu.com/?
2. maxthon
不继承ie的拦截设置。
maxthon 支持一定时间的timeout open , 现在测试大概是850 ms, 以上几种方式在timeour 大于850 不能打开页面。
3. chrome
chrome不支持timeout open 的方式, 跟ie 的一致。
4. TT
TT 自定义屏幕模式下不能用脚本打开新页面。
5. firefox
firefox 默认的方式没有拦截, 以上方式都可以打开。
代码
[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]
小结一下:
1. 应用要在新页打开,使用 a 加上 href 把别的一些功能放在onclick 上, 如
<a href="http://www.baidu.com" target="_blank" onclick="alert(1)"></a>
2. 一些应用要在新页打开,跟cgi在关的, 可以使用http 302 跳转
<a href="http://www.example.com/cgi?myid=1" target="_blank" onclick="alert(1)"></a>
http://www.example.com/cgi?myid=1 将跳转到你想要的页面
3. 一定要用js在新页打开页面的, 用window.open 就可以
<a href="javascript;" onclick="window.open('http://www.baidu.com');return false;"></a>
相关文章推荐
- 关于页面被拦截的问题
- 关于在开发过程中 跳转页面被拦截问题
- 关于运行本地web页面浏览器出现安全拦截提示问题
- 【web前端】关于页面中 JS 中windown.open( )方法打开新页面有可能会被浏览器拦截的问题
- 求助!关于页面打印的问题
- 关于JSP页面乱码的问题
- 关于页面传递路径的问题
- Jsp页面关于BootStrap模态框和<a href onclick>事件不能同时使用,以及传参的问题
- 关于chrome一键清除所有html页面中断点的问题
- Java与Flex学习笔记(11)----关于Struts2拦截Flex请求的问题
- 关于一些包含有特殊符号内容的在页面被截取的问题
- 关于在eclipes中配置tomcat不能显示主页面问题
- 关于在eclipes中配置tomcat不能显示主页面问题
- 关于使用System.out.println()向控制台输出数据和使用out.println()向页面输出数据效率的问题
- 关于splash页面 白屏问题
- 关于近乎安装卡在了链接数据库的向导页面问题的解决办法分享
- 关于WEB页面刷新重复提交问题 - Servlet篇(拦截器)
- 关于用HOOK拦截键盘的一些问题
- 关于angular的include指令,include的页面无法加载js问题解决
- 关于页面嵌入swf覆盖div层的问题的解决方法