[英]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.