鼠标:禁用右键和中键单击 [英] mouse : disable right and middle button click
本文介绍了鼠标:禁用右键和中键单击的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经用过了,但是没有用;萤火虫中没有错误:
I've used this but it doesn't work; no errors in the firebug:
$("div").live('mousedown', function(e) {
if( (e.which == 1) ) {
return ;
}if( (e.which == 3) ) {
return false;
}else if( (e.which == 2) ) {
return false;
}
})
我可以使用contextmenu
禁用右键单击,但是我不知道如何处理中间按钮.
I can disable right click with contextmenu
but I dont know what to do about middle button.
推荐答案
查看全文