I want to simulate a Ctrl + Click on a link to open another tab but in the browser does not follow that new tab, I mean? I want to stay on the same tab. The example and problem:
<a class="btn btn-small" href="/en/upload-file" data-original-title=""><i class="icon-white icon-plus"></i> Add new</a>
I have this Script
that I can not adapt
var e = jQuery.Event("click");
e.ctrlKey = true;
$('#id').trigger(e);
As you can see this script
works with #id
but this outerHTML
of example does not have #id
I wonder if it can be done taking as a reference the class=
or directly the href=
as you would solve it?