function click() {
if (event.button==2 || event.button==1+2 || event.button==2+1) {
alert("Action Not Allowed");
}
}
document.onmouseup=click;
document.onmousedown=click;
