在div上添加一个右键点击事件
<input id="666" type="button" >点击</input> <script type="text/javascript"> $(function(){ $("#666").unbind("mousedown").bind("mousedown", function (event) { if (event.which == 1) { alert("click left!"); }else if(event.which == 2){ alert("click roll!"); } else if(event.which == 3){ alert("click right!"); } }); }); </script>