javascript 在弹出窗口中隐藏栏地址( chrome )
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/15230137/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
hide bar address in popup ( chrome )
提问by Daniel Garcia Sanchez
I'm looking for this, but I don't find the solution.
我正在寻找这个,但我没有找到解决方案。
I'm opening a popup using:
我正在使用以下命令打开一个弹出窗口:
window.open(url, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=yes, copyhistory=no, width=w, height=h, top=top, left=left');
All is ok, but it doesn't work, at least in chrome, and I need it working. I found solutions like location=no(but it doesn't work) and use jquery-ui or others libraries...but I need with pure javascript...
一切正常,但它不起作用,至少在 chrome 中,我需要它工作。我找到了location=no 之类的解决方案(但它不起作用)并使用 jquery-ui 或其他库...但我需要使用纯 JavaScript...
Anyone know about this?
有人知道这件事吗?
EDIT
编辑
After this, I'd need hide buttons of maximize and minimize. Thanks in advance for any help.
在此之后,我需要隐藏最大化和最小化按钮。在此先感谢您的帮助。
EDIT 2
编辑 2
And what about minimize and maximize buttons? Is possible delete them in a popup?
那么最小化和最大化按钮呢?是否可以在弹出窗口中删除它们?
Thanks very much, Daniel
非常感谢,丹尼尔
回答by Niet the Dark Absol
Most browsers do not allow you to hide the address of the page anymore. This is for safety reasons, otherwise a phishing site could be placed in front of you and you would have no idea.
大多数浏览器不再允许您隐藏页面地址。这是出于安全原因,否则网络钓鱼站点可能会出现在您面前,您将一无所知。