隐藏浏览器的地址栏(弹出窗口) [英] Hiding the address bar of a browser (popup)

查看:495
本文介绍了隐藏浏览器的地址栏(弹出窗口)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须隐藏浏览器的地址栏.我正在使用此代码:

I have to hide the address bar of a browser. I am using this code:

var winFeature =
        'location=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes';
window.open('Result.html','null',winFeature);  

在许多解决方案中,仅location=no属性可以隐藏地址栏(在IE和Chrome中均是如此).但是,这对我不起作用(即使在IE和Chrome浏览器中也是如此).

In many solutions, just the location=no attribute can hide the address bar (in both IE & Chrome). However, this didn't work for me (even in IE & Chrome).

最后,我找到了 MSDN文章,其中描述了location=no只需隐藏后退/前进/停止导航按钮,并将地址栏设为只读.

Finally, I found a MSDN article that describes how location=no simply hides the back/forward/stop navigation buttons, and makes the address bar read-only.

是否有任何解决方案可以通过忽略上面的MSDN文章来隐藏整个地址栏?我正在IE和Google Chrome中进行测试.

Is there any solution to hide the entire address bar by ignoring above MSDN article? I am testing in IE and Google Chrome.

推荐答案

真相是什么?

What is the truth?

Microsoft描述其浏览器行为的文档是正确的.

Microsoft's documentation describing the behaviour of their browser is correct.

有什么办法可以隐藏地址栏吗?

Is there any solution to hide the addressbar?

不.如果可以将其隐藏,则可以使用HTML/CSS制作看起来像公用地址栏的内容.然后,您可以在其中输入其他地址.然后,您可以欺骗人们以为他们在不同的站点上,并输入密码.

No. If you could hide it, then you could use HTML/CSS to make something that looked like a common address bar. You could then put a different address in it. You could then trick people into thinking they were on a different site and entering their password for it.

不可能对用户隐藏用户的位置,因为对用户来说,知道他们的位置对安全至关重要.

It is impossible to conceal the user's location from them because it is essential for security that they know what their location is.

这篇关于隐藏浏览器的地址栏(弹出窗口)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆