<body onmousedown="whichElement(event)">

</body>

 

 

function whichElement(e) {

if (e.button == 2 || e.button == 4) {
alert("右键被阻止了");
$.preventDefault();//阻止右键
}

}

posted on 2015-01-17 11:00  天道酬勤,  阅读(224)  评论(0编辑  收藏  举报