0
![Not allowed!](https://a2s.in/images/buttons/down_dis.png)
![Not allowed!](https://a2s.in/images/buttons/up_dis.png)
Hello, i would like to know if nay coders know of a script that when you click on a link it goes to the link and opens a new tab. Even if it's in JS.
Hey, how do you exactly mean that?
Do you own a website and want the link to appear in another tab?
Do you want to click on links and they should appear in a new tab?
I mean like if you click on a link the tab you clicked on the link in will foawrd to http://link and also open a new tab and go to a link
try this one
test it here > Edit fiddle - JSFiddlePHP Code:
<a href="https://a2s.in" target="_blank" onclick="window.open('http://google.com'); window.open('http://skype.com');">Click Me</a>
if you don't want A2S to be opened in new tab , and you just want the two others to be opened in new tab try this
PHP Code:
<a href="https://a2s.in" onclick="window.open('http://google.com'); window.open('http://skype.com');">Click Me</a>
Last edited by Angemon; 02-27-2015 at 11:03 PM.
thanks alot bro!Whoohoo
Bookmarks