Is there a way in jQuery or JavaScript to enable the user to CTRL + Click a link to open a link in a new tab like <a href="">example</a>
element?
Here is an example of what I am talking about:-
jQuery('#some-link').bind('click', function() {
window.location = 'http://someurl.com';
});
If you hold CTRL and click the 'some-link' element, it just opens the page within the current page when using the above code, any ideas on how do this?