/    Sign up×
Community /Pin to ProfileBookmark

Open Tabbed Window

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

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@gil_davisFeb 27.2003 — 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).
Copy linkTweet thisAlerts:
@Jim_ShackelfordauthorFeb 27.2003 — Thanks for trying. At least it reinforces my impression that no documentation exists.

Jim Shackelford
Copy linkTweet thisAlerts:
@NevermoreFeb 27.2003 — 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.
×

Success!

Help @Jim_Shackelford spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...