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.:cool2:
Printable View
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.:cool2:
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 oneQuote:
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
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>
thanks alot bro! :D Whoohoo