hide bar address in popup ( chrome )(在弹出窗口中隐藏栏地址( 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 )的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:在弹出窗口中隐藏栏地址( chrome )


基础教程推荐
- 如何在特定日期之前获取消息? 2022-01-01
- 为什么我在 Vue.js 中得到 ERR_CONNECTION_TIMED_OUT? 2022-01-01
- 如何使用sencha Touch2在单页中显示列表和其他标签 2022-01-01
- Node.js 有没有好的索引/搜索引擎? 2022-01-01
- 每次设置弹出窗口的焦点 2022-01-01
- jQuery File Upload - 如何识别所有文件何时上传 2022-01-01
- WatchKit 支持 html 吗?有没有像 UIWebview 这样的控制器? 2022-01-01
- 什么是不使用 jQuery 的经验技术原因? 2022-01-01
- Javascript 在多个元素上单击事件侦听器并获取目标 2022-01-01
- 如何使用 CSS 显示和隐藏 div? 2022-01-01