【发布时间】:2013-08-21 19:35:12
【问题描述】:
我正在尝试隐藏所有浏览器中的地址栏。我已经做了足够的搜索并找到了完成这项工作的代码。 以下是代码
function openWindow(){
var browser=navigator.appName;
if (browser=="Microsoft Internet Explorer")
{
window.opener=self;
}
window.open("index.html","null","width=900,height=750,toolbar=no,scrollbars=no,location=no,resizable =yes");
window.moveTo(0,0);
window.resizeTo(screen.width,screen.height-100);
self.close();
}
location=no/0 等不工作,地址栏仍然存在。我该怎么办? 如果不可能,那么有什么办法可以在地址栏中隐藏 URL?
【问题讨论】:
-
这个的用例是什么?
-
@sean 我正在阅读 DOM,我在 w3schools 阅读了那里的描述。我正在努力学习他们在那里写的东西。没有其他目的。
-
不要这样惹用户。
标签: php javascript jquery