Re: Don't open links in new window

Brian Heinrich <[email protected]>
Newsgroups gmane.comp.mozilla.devel.prefs
Organization Wordsmyth, Unltd.
Message-ID <[email protected]>
On 19 Oct 2002, it is alleged that Karl von Laudermann sauntered in to 
netscape.public.mozilla.prefs and loudly proclaimed:

> Sometimes when you click a link, it opens the target page in a new 
> window, because the web site author set it to do so. I know there's a 
> Mozilla preference to _always_ open a link in the same window (unless 
> you explicitly control-click it, or right-click and choose Open Link in 
> New Window). However, I recently trashed my Mozilla preferences and am 
> resetting them all from scratch, and I can't find this option anywhere 
> in the Preferences dialog. Am I just blind, or did they remove it from 
> the dialog? If the latter, how can I set it directly in prefs.js?

'Twas never in, AFAIK.  Try adding

//force 'target="_blank"' to load in same browser window (allowing you to 
open it in a tab):
user_pref("browser.block.target_new_window", true);

to user.js.

/b.

-- 
Mozilla end-user questions should be directed to:
  * snews://secnews.netscape.com:563/netscape.mozilla.user.general
  * snews://secnews.netscape.com:563/netscape.mozilla.user.win32
  * snews://secnews.netscape.com:563/netscape.mozilla.user.mac
  * snews://secnews.netscape.com:563/netscape.mozilla.user.unix
Note that you need to have SSL enabled and the port set to 563.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.