在弹出窗口中隐藏栏地址( chrome ) [英] hide bar address in popup ( chrome )

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

问题描述

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

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.

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

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