I have written the following code in jQuery:
$(document).on("click", "#datatable-responsive tbody tr td button.btn", function () {
window.open('somelinkhere', '_blank');
});
So the problem here is when I do it like this , and it works flawlessly, the new tab that is opened gets the focus, and I don't want that to happen. Instead I would like to simulate these two keystrokes: ctrl + left mouse click
so that my main windows stays in focus and new tab gets opened...
How could I do this in jQuery?