
function click() {
if (event.button==2) {  //改成button==2为禁止右键
alert('对不起,禁止使用此功能.')
}
}
document.onmousedown=click

