我需要通过我的JavaScript代码隐藏所有浏览器的地址栏.有可能吗?
这是我的代码:
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
Run Code Online (Sandbox Code Playgroud)
Pek*_*ica 18
由于安全限制,现代浏览器不再可能这样做.
官方(-ish)来源:
在Firefox 3中,dom.disable_window_open_feature.location现在默认为true,强制存在位置栏,就像在IE7中一样.有关更多信息,请参阅错误337344.
在Internet Explorer 6中,location指定是否显示地址栏.
(暗示行为以IE6结束)
Chrome中会忽略这些工具栏隐藏参数.您还会注意到,现代浏览器正朝着不将其隐藏为安全/反网络钓鱼措施的方向发展.另请参阅https://bugzilla.mozilla.org/show_bug.cgi?id=337344
| 归档时间: |
|
| 查看次数: |
50919 次 |
| 最近记录: |