在弹出窗口中隐藏栏地址( chrome )

2022-01-20 00:00:00 popup javascript

我正在寻找这个,但我没有找到解决方案.

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');

一切正常,但它不起作用,至少在 chrome 中,我需要它工作.我找到了 location=no 之类的解决方案(但它不起作用)并使用 jquery-ui 或其他库...但我需要纯 javascript...

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...

有人知道吗?

编辑

在此之后,我需要隐藏最大化和最小化按钮.提前感谢您的帮助.

After this, I'd need hide buttons of maximize and minimize. Thanks in advance for any help.

编辑 2

那么最小化和最大化按钮呢?是否可以在弹出窗口中删除它们?

And what about minimize and maximize buttons? Is possible delete them in a popup?

非常感谢,丹尼尔

推荐答案

大多数浏览器不再允许隐藏页面地址.这是出于安全考虑,否则网络钓鱼站点可能会摆在您面前而您根本不知道.

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.

相关文章