window.open Opens in New Tab

By 1212jtraceur Last update Jul 8, 2007 — Installed 333 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 5 posts, 5 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
SethA User

true... but the about:config is not quite good enough...
(read first... then comment... )

browser.link.open_newwindow.restriction

Possible values and their effects
[edit]
0

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

This includes:

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

[edit]
1

Do not divert any links (browser.link.open_newwindow will have no effect).
[edit]
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 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() <u>with the "features" parameter</u> (3rd parameter).

what I REALLY need to know is how to get Those js windows to open in tabs...
(i have a thread at mozillazine about it... go there for more details... and if ya can help, i'd be everso glad... thanks)

'javascript'
http://forums.mozillazine.org/viewtopic.php?p=3...

 
Descriptor Scriptwright

It's built into the browser already...
browser.link.open_newwindow
browser.link.open_newwindow.restriction

See also this thread.

 
Neewb Scriptwright

Sweeet one liner. I love one liners!

 
Peter Bunyan Scriptwright

I don't know why nobody thought of this before! It's incredibly useful, and it's just one line of code. You can't get much more elegant than that :)

10 / 10, definitely.

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel