使用window.open想要在IE7中的新窗口中删除url栏 [英] using window.open want to get rid of url bar in new window within IE7

查看:95
本文介绍了使用window.open想要在IE7中的新窗口中删除url栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用window.open方法:

Using the window.open method :

在IE6中运行的以下行会生成一个新窗口,其中只有顶部标题栏和状态栏。 但是在IE7中,总是 a 标题栏下方的地址栏。 我无法摆脱它。 当然有办法!?。 这与反网络钓鱼过滤器有关吗? 如果是这样的话有一种方法可以知道客户端是否打开了这样我就不能根据要显示的内容进行窗口大小调整?

The line below running in IE6 produces a new window with a only the top title bar and status bar.  However in IE7 there is always a address bar just below the title bar.  I can't get rid of it.  Surely there's a way!?.  Does this have to do with the anti-phishing filter?  If so is there a way to know that the client has that turned on so that I can't do a switch for window sizing based on what's going to be shown?

window.open( "StreamStageDisplay.aspx" "_blank" "directories = no,height = 800 ,left = 800, location = no,menubar = no,resizable = yes,scrollbars = no,status = yes,titlebar = no,toolbar = no,top = 100 ,width = 100

window.open("StreamStageDisplay.aspx","_blank","directories=no, height=800, left=800, location=no, menubar=no, resizable=yes, scrollbars=no, status=yes, titlebar=no, toolbar=no, top=100, width=100)

我在MSDN中找到了这个可能回答这个问题的博客......但是,为什么它是一个下拉菜单...为什么状态栏不够? 地址栏甚至在模态和无模式对话框中......< yeech>:

I found this in the MSDN blogs that perhaps answers the question... but still, WHY is it a dropdown... WHY isn't the status bar enough?  The address bar is even there in modal and modeless dialogs... <yeech>:

http://blogs.msdn.com/ie/archive/2005/11/21/495507.aspx  

感谢您的帮助,
Tom

Thanks for any help,
Tom

 

推荐答案

您可以不要通过脚本删除地址栏。用户可以控制此。有一个名为"允许网站打开没有地址或状态栏的窗口"的安全选项。用户可以启用它以便看不到(丑陋的)地址栏。
You can't remove the address bar through script. The user has control of this. There is a security option called "Allow websites to open windows without address or status bars". The user can enable that in order to not see the (ugly) address bars.


这篇关于使用window.open想要在IE7中的新窗口中删除url栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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