How can I change the default behaviour of the left mose button so that it acquires the default property of the middle button, but only for a specific instance?
Eg.
<a id="special" href="https://www.google.com">CLICK ME</a>
<a href="https://www.bing.com">CLICK ME</a>
This is not real JS just pseudo code:
$('#special') function tmpSwap {
if(event.button == 1)
Return event as button 2 (aka button(1) is now button(2))
}
}
Button 1 - left Button 2 - middle
So any time a hyperlink with the specific named anchor is left clicked the script runs and the behaviour that follows equates to behaviour as if the link was middle clicked.