gpt4 book ai didi

asp.net - 弹出窗口,如何在IE8中隐藏地址栏

转载 作者:数据小太阳 更新时间:2023-10-29 06:03:59 24 4
gpt4 key购买 nike

当我打开弹出窗口并设置 location=0 或 location=no 时,url 栏仍然在 IE8 中显示并且只读。

怎么隐藏呢?

谢谢

最佳答案

这是不可能的,现代浏览器不允许这样做,那将是一个主要的安全漏洞。
另见 this answer, shamelessly copied from David Dorward :

In Internet Explorer 7 and later, you cannot remove the address bar in Internet Zone windows, for security (anti-spoofing) reasons.

http://msdn.microsoft.com/en-us/library/ms536651%28VS.85%29.aspx

关于asp.net - 弹出窗口,如何在IE8中隐藏地址栏,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1673003/

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