$('a').mousedown(function(e){
alert(e.which) // 1 = 鼠標左鍵 left; 2 = 鼠標中鍵; 3 = 鼠標右鍵
return false;//阻止鏈接跳轉
})
比如:
$('#down').mousedown(function(e){
if(3 == e.which){
alert('這是右鍵單擊事件');
}else if(1 == e.which){
alert('這是左鍵單擊事件');
}
})