<!DOCTYPE html>type='text/javascript'src='http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js'type='text/javascript'$(function(){$(document).on("mousedown", "a.external", function(e) {console.log(e.which);if( e.which <= 2 ) {e.preventDefault();console.log ("Button clicked: " + e.which);}else{console.log ("Button clicked else: " + e.which);}});});class="external"Test