隐藏浏览器的地址栏 [英] Hiding the address bar of a browser

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

问题描述

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

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和谷歌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天全站免登陆