简体   繁体   English

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

[英]How do I allow pop-ups from local files (file:/// addresses) in Firefox 5?

I've created an HTML file on my local machine that I open using a file:/// address.我在本地机器上创建了一个 HTML 文件,我使用file:///地址打开该文件。 It includes JavaScript that opens new browser windows using window.open() .它包括使用window.open()打开新浏览器 windows 的 JavaScript 。

When I view this page in Firefox 5, the pop-up blocker blocks the new window.当我在 Firefox 5 中查看此页面时,弹出窗口阻止程序阻止了新的 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?如何允许 Firefox 5 中的file:///地址弹出窗口?

Add <file> to the allowed list under Preferences/Options -> Content -> Block pop-up windows... Exceptions.将 <file> 添加到 Preferences/Options -> Content -> Block pop-up windows... Exceptions 下的允许列表中。

edit: This no longer works, see comments编辑:这不再有效,请参阅评论

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 QWebView允许弹出窗口吗? - QWebView allow pop-ups? cookie 同意弹出窗口如何在内部工作? - How do cookie consent pop-ups work internally? 如何从我的网站上显示删除JoinPouch弹出窗口 - How To Remove JoinPouch Pop-Ups From Showing On My Site 防止弹出窗口被阻止 - Prevent pop-ups from being blocked 如何通过 Leaflet 中的弹出窗口解决此问题 - How to solve this problem with pop-ups in Leaflet 为什么我使用 OpenLayers 在两个弹出窗口中得到相同的文本 - Why do i get same text in both Pop-ups using OpenLayers 在IE + 6中加载带有活动x控件的html文件时,如何绕过Active X弹出窗口 - How to bypass Active X pop-ups when a html file with active x controls are loaded in IE+6 如果两个单独的选项卡有两个单独的弹出窗口,那么在关闭弹出窗口时如何刷新各自的选项卡。 如果我在其他活动标签中 - In case of two separate pop-ups from two separate tabs, how can I refresh the respective tab while closing a pop-up. if I am in a different active tab 如何将Vanilla JS添加到我的react应用程序中以创建Image Modal弹出窗口? - How can I add Vanilla JS to my react app to create Image Modal pop-ups? JavaScript中弹出式窗口的问题 - Problems with pop-ups in JavaScript
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM