gpt4 book ai didi

javascript - 在现代浏览器中隐藏地址栏是不可能的吗?

转载 作者:行者123 更新时间:2023-11-29 22:07:48 26 4
gpt4 key购买 nike

<分区>

我想隐藏新弹出窗口的地址栏。我在谷歌上搜索了很多,所有结果都是这个。

This is no longer possible in modern browsers due to security restrictions.

Official(-ish) Sources:

Firefox

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 7 and later

In Internet Explorer 6, location specifies whether to display the Address Bar.

(Implying the behaviour ends with IE6)

Chrome/Chromium

Those toolbar hiding parameters are ignored in Chrome. You will also notice that modern browsers are moving towards not hiding it as security / anti phishing measures. Also see https://bugzilla.mozilla.org/show_bug.cgi?id=337344

这意味着 window.open 的位置选项不再有效。

地址栏真的不能隐藏吗?有什么好的解决办法吗?我们的项目确实需要隐藏地址栏。请求参数是发送session id,老板想隐藏。它正在调用 Get RESTAPI,因此无法选择使用 POST 隐藏参数。

有什么好主意吗?

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com