隐藏所有浏览器中的地址栏 [英] Hiding address bar in all browsers
问题描述
我需要通过JavaScript代码隐藏所有浏览器的地址栏。有可能吗?
I need to hide the address bar of all browsers through my JavaScript code. Is it possible to do?
这是我的代码:
window.open("displayPdf.php?mnth="+mnth+"&year="+year+"&val="+newVal);
dom.disable_window_open_feature.location
dom.disable_window_open_feature.resizable
dom.disable_window_open_feature.status
推荐答案
由于安全限制,这在现代浏览器中不再可行。
This is no longer possible in modern browsers due to security restrictions.
官方(-ish)来源:
Official(-ish) Sources:
在Firefox 3中,dom.disable_window_open_feature.location现在默认为true,强制存在位置栏与IE7非常相似。有关详细信息,请参阅错误337344.
In Firefox 3, dom.disable_window_open_feature.location now defaults to true, forcing the presence of the Location Bar much like in IE7. See bug 337344 for more information.
在Internet Explorer 6中,location指定是否显示地址栏。
In Internet Explorer 6, location specifies whether to display the Address Bar.
(暗示行为以IE6结束)
(Implying the behaviour ends with IE6)
< a href =https://code.google.com/p/chromium/issues/detail?id=81506> Chrome / Chromium
Chrome中会忽略这些工具栏隐藏参数。
您还会注意到现代浏览器正朝着不将其隐藏为安全/反网络钓鱼措施的方向发展。
另见 https://bugzilla.mozilla.org/show_bug.cgi?id=337344
这篇关于隐藏所有浏览器中的地址栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!