Click to See Complete Forum and Search --> : Open Tabbed Window


Jim Shackelford
02-27-2003, 09:10 AM
I'm using Mozilla 1.2a which is also the underlying engine for Netscape 7. It allows links to be opened (manually by the user) in a new tabbed window in the same instance of the browser, rather than than either replacing the current window or opening a second instance of the browser. I have been unable to find any reference as to how to open a new, tabbed window in these browsers using javascript (or any other method).

The basic code I use is:

win=window.open(href,"thewin")
win.focus()

Here, the variable href is a value passed to a function from a form. Thanks in advance.

Jim Shackelford

gil davis
02-27-2003, 10:01 AM
http://www.mozilla.org/docs/dom/domref/dom_window_ref76.html#1019331 is the only reference I could find that was pertinent to NS 7. It does not list any new features from Netscape's original implementation, and actually dropped one ("dependent").

FYI, http://developer.netscape.com/docs/manuals/js/client/jsref/window.htm#1202731 is the "original" JS 1.2 definition that I am used to. You will see many more features.

I think the reason that the documentation is lacking on the new browsers stems from the browser wars (hey, it's free. What do you want for nothing?). Also, the W3C does not specify anything that has to do with windows - they only seem concerned with dictating document stuff (e.g.: HTML, CSS).

Jim Shackelford
02-27-2003, 12:31 PM
Thanks for trying. At least it reinforces my impression that no documentation exists.

Jim Shackelford

Nevermore
02-27-2003, 01:56 PM
You can't do it - the javascript opens a new window. This, in my problem, is one of the most annoying bugs IN THE ENTIRE WORLD, since I love tabbed browsing. If you use Opera, I think it will open windows in tabs, which also shows that it is the software, not the script, which is playing up.

Sorry about the glitch.