MozillaZine

Browser.link.open newwindow.restriction

From MozillaZine Knowledge Base

Contents

Background

Some web sites choose to open certain links in new windows. However, many users prefer using tabs to multiple browser windows. This preference allows for fine-tuning of browser.link.open_newwindow.

Oftentimes when a new window is opened from JavaScript, it’s a small popup without all of a usual browser window’s features—e.g., the back/forward/reload buttons are hidden, the status bar is hidden, the size is purposely smaller, etc. Usually in this situation, the window is designed specifically as a popup, and opening it in a tab actually makes it less useful. This preference can let these types of links open as new windows while opening all other types as new tabs.

Possible values and their effects

0

Divert all links according to browser.link.open_newwindow. (Default in Firefox 1.0.x and SeaMonkey 1.0 to 2.1a2)

This includes:

  • All HTML links with target="_blank".
  • All JavaScript calls to window.open().

1

Do not divert any links (browser.link.open_newwindow will have no effect).

2

Divert all links according to browser.link.open_newwindow, unless the new window specifies how it should be displayed. (Default in Firefox 1.5 and later, in SeaMonkey 2.1a3 and later, and Camino 1.5)

This includes:

  • All links with target="_blank".
  • JavaScript calls to window.open() without the "features" parameter (3rd parameter).

This does not include:

  • JavaScript calls to window.open() with the "features" parameter (3rd parameter).

First checked in

Has an effect in

  • Mozilla Firefox (all versions since 1.0RC1)
  • SeaMonkey (all versions)
  • Camino (1.1a1 and newer)

Related bugs

Related preferences