/    Sign up×
Community /Pin to ProfileBookmark

open links in new tabs in a new window

Hi there,

We have a requirement to open new links in new tabs in a new window.
Please help in implementing this.The requirement is as follows:

The UI has say one textbox and three checkboxes, say as follows :

SL# <textbox>

-cb1 <checkbox>
-cb2 <checkbox>
-cb3 <checkbox>

GO<button>

  • 1. Enter an SL#, check cb1 and cb2, hit GO : a new window should open with two tabs.

  • 2. Enter a different SL#, check cb1, cb2 and cb3, hit GO : yet another new window should open with three tabs.
  • We had tried using _blank as target and as name of the window in window.open, but all that leads to either opening all the links in a new tab in the same browser, or all the links in a new window each time. We need to differentiate the windows depending on SL#.
    Please advice if there is a way to do this. If the control can be passed to the new window, forcing the new tabs to get opened in a new window or so.

    to post a comment
    JavaScript

    1 Comments(s)

    Copy linkTweet thisAlerts:
    @DokOct 07.2008 — Please advice if there is a way to do this.[/QUOTE]You can not. This behavior is controlled by the user.
    ×

    Success!

    Help @codeit 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.26,
    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,
    )...