当我打开弹出窗口并设置 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/