totaltricks.blogg.se

Firefox open link in new tab
Firefox open link in new tab




131 m) does not appear to have any settings that the user can use to choose whether or not to open popups in a new window or a new tab (like Firefox and Internet Explorer have). I'm not 100% sure, but it looks like Chrome (version. What About Chrome? It Implements window.open Differently from Internet Explorer (11) and Firefox (29). You can also test those snippets above in Firefox (29) with its tab preference set to new windows, and see the same results. Observe that the popups are opened in a new window, not a new tab. Internet Explorer (11)Īfter setting up Internet Explorer (11) to open popups in a new window as demonstrated above, use the following test page to test window.open: Go to your browser's settings and configure it to open popups in a new window.

firefox open link in new tab

You cannot expect the same behavior for window.open to be true across all of Internet Explorer, Firefox, and Chrome, because of the different ways in which they handle a user's browser preferences.įor example, Internet Explorer (11) users can choose to open popups in a new window or a new tab, you cannot force Internet Explorer 11 users to open popups in a certain way through window.open, as alluded to in Quentin's answer.Īs for Firefox (29) users, using window.open(url, '_blank') depends on their browser's tab preferences, though you can still force them to open popups in a new window by specifying a width and height (see "What About Chrome?" section below).

firefox open link in new tab firefox open link in new tab

Window.open Cannot Reliably Open Popups in a New Tab in All Browsersĭifferent browsers implement the behavior of window.open in different ways, especially with regard to a user's browser preferences.






Firefox open link in new tab