jquery鼠标右键事件

$('body').live("mousedown",function(e){

     $('body').bind("contextmenu",function(e){

         return false;

    });

     if(e.which==3){

       alert("鼠标右键触发事件");

     }

  });

1为左键。2为中间滑轮。3为右键

posted @ 2013-06-27 17:50  webnote  阅读(476)  评论(0编辑  收藏  举报