如何在 Firefox 5 中允许来自本地文件(file:/// 地址)的弹出窗口?

发布于 2024-11-28 20:45:37 字数 266 浏览 2 评论 0原文

我在本地计算机上创建了一个 HTML 文件,并使用 file:/// 地址打开该文件。它包含使用 window.open() 打开新浏览器窗口的 JavaScript。

当我在 Firefox 5 中查看此页面时,弹出窗口阻止程序会阻止新窗口。我无法改变这种行为;单击弹出窗口拦截器“首选项”会显示一个菜单项“允许弹出窗口”,但没有任何效果。

如何在 Firefox 5 中允许弹出 file:/// 地址?

I've created an HTML file on my local machine that I open using a file:/// address. It includes JavaScript that opens new browser windows using window.open().

When I view this page in Firefox 5, the pop-up blocker blocks the new window. I can't override this behavior; clicking the pop-up blocker "Preferences" shows a menu item "Allow pop-ups for", which has no effect.

How do I allow pop-ups for file:/// addresses in Firefox 5?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

撧情箌佬 2024-12-05 20:45:37

添加<文件>到下面的允许列表
首选项/选项 ->内容->阻止弹出窗口...例外。

编辑:这不再有效,请参阅评论

Add <file> to the allowed list under
Preferences/Options -> Content -> Block pop-up windows... Exceptions.

edit: This no longer works, see comments

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文