<script language="JavaScript"> <!-- function click() { if (event.button==1) // 判断鼠标左键 {alert('您好,您鼠标左键已被禁止使用'); // 弹出提示框 } } document.onmousedown=click //--> </script>