Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Redirect in background without losing focus on current window using jQuery?

Tags:

jquery

Suppose I have a string of links like this:

<a href="www.google.co.uk">gb version</a>
<a href="www.google.ie">roi version</a>
<a href="www.google.com">non-localised</a>

Is there any quick way of making the links open in background without losing focus from the index page using jquery?

like image 939
Koffeehaus Avatar asked Nov 12 '22 17:11

Koffeehaus


1 Answers

Write target='_blank'.

<a target="_blank" href="www.google.co.uk">gb version</a>
<a target="_blank" href="www.google.ie">roi version</a>
<a target="_blank" href="www.google.com">non-localised</a>
like image 190
codingrose Avatar answered Jan 04 '23 03:01

codingrose