I have the following code:
$(document).ready(function() {
$("#TestLink").click(function() {
$("#LinkHolder").html("test");
});
});
<span id="LinkHolder">
<a href="SomeLink" id="TestLink" target="_blank">Click here to test</a>
</span>
Everything works like a charm when I click with left mouse button on the link, but when I click it with CTRL+LeftMouseButton or MiddleMouseButton it doesn't work.
Will be glad if someone can help me with this one.
Thanks in advance!
Consider:
$(document).ready(function() {
$("#TestLink").mouseup(function(e) {
$("#LinkHolder").html("test");
});
});
As an alternative? This does detect middle mouse button clicks.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With