Skip to content Skip to sidebar Skip to footer

Is Window.open("", ... Impossible With Firefox?

In firefox I have opened a locally stored file with the file:// protocol (file:///c:/temp/foo.html) foo.html contains Java Script which (among others) is supposed a new window wit

Solution 1:

This is a Firefox security precaution, see this link:

http://kb.mozillazine.org/Links_to_local_pages_don't_work

However, it looks like this extension will allow you to override it:

https://addons.mozilla.org/en-US/firefox/addon/281


Solution 2:

This is the popup blocker, which block popups not opened by an explicit user action like a click. You cannot force it to open the popup, you need to allow Firefox to open it. I suggest you to test the new_window variable to see if it is null. In this case, display a message to the user so that he allows the domain to open popup windows.


Post a Comment for "Is Window.open("", ... Impossible With Firefox?"