The following code works in Chrome (outputs to the log and does other processing). However in IE10 the function is not called. Nothing displayed in console in IE 10 and there are no errors on the page reported by Chrome or IE10.
I checked other questions and one item which comes up is that the code is known to fail if the link is disabled, but my link is not disabled! in fact the link click works fine, only the funciton is not being called.
$('a').click(function (e) {
console.log('click event detected with button '+e.which);
if (e.which == 2) {
e.preventDefault();
...
}