I recently discovered that different browsers handle the onclick
event differently when the Control or Shift keys are pressed. They diverge similarly on behavior for for following links by clicking the middle mouse button.
With the following link:
<a href="http://www.example.com/" onclick="alert('onclick');">go to example.com</a>
Onclick browser support table
Mouse Keyboard Chrome Firefox Safari Opera IE5.5 IE6 IE7 IE8 IE9
Left None yes yes yes yes yes yes yes yes yes
Left Ctrl yes yes yes yes ? yes no no ?
Left Shift yes yes yes yes ? yes yes yes ?
Middle None yes no yes no ? N/A no no ?
Can someone please fill in the question marks for me? Also; I'm wondering if the behaviour differs for each version of Chrome, Firefox, Safari and Opera.
Finding a logical pattern in this behavior would be even nicer, but I don't think there is one, unfortunately. :)