MozillaZine

Browser.block.target new window

From MozillaZine Knowledge Base

Contents

Background

Anchor elements in HTML can specify a target attribute that determines where the link is opened. If the value is _blank or _new, the link will open in a new window, which can be irritating for users not expecting it.

The preference browser.target_new_blocked was created to prevent this from happening (and redirect those links into the current window). It was later renamed to browser.block.target_new_window (this preference). This preference, in turn, was superseded by the effects of browser.link.open_newwindow.

Possible values and their effects

True

Links set to open in a new window will open in the current window instead.

False

Links set to open in a new window will open in a new window. (Default)

Caveats

First checked in

2002-02-25 by Boris Zbarsky (patch by Jonas Jørgensen)

Has an effect in

  • Mozilla Suite (all versions)
  • Mozilla Firefox (all versions until 1.0)

Related bugs

Related preferences