Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #31002

Open all links in new window

Newsgroups comp.lang.javascript
Date 2016-07-31 23:37 -0700
Message-ID <e1ab8ac7-2ef0-4f29-adcc-9276edc0dddf@googlegroups.com> (permalink)
Subject Open all links in new window
From csakkoni@gmail.com

Show all headers | View raw


Dear Friends, 

I have a website www.xyzabc.com (dummy site mentioned) and on the tutorials web page I have 100+ urls. Few assets are linked to my site and few are 3rd party links. I need a script which excludes my links and all 3rd party links are opened in a new tab even if I do not add target="_blank" or onclick().The Code should not be applied manually on all links, it should be one simple code that can be updated in a JS file. 

Thanks in advance. 

Thanks, 
Chandramohan

Back to comp.lang.javascript | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Open all links in new window csakkoni@gmail.com - 2016-07-31 23:37 -0700
  Re: Open all links in new window Osmo Saarikumpu <osmo@weppipakki.com> - 2016-08-02 06:44 +0300
    Re: Open all links in new window "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-08-02 10:50 +0200
      Re: Open all links in new window Chandramohan Akkoni <csakkoni@gmail.com> - 2016-08-02 21:25 -0700
        Re: Open all links in new window "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-08-03 10:20 +0200
    Re: Open all links in new window Chandramohan Akkoni <csakkoni@gmail.com> - 2016-08-03 10:39 -0700
      Re: Open all links in new window "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-08-03 23:46 +0200

csiph-web