日期:2014-05-16 浏览次数:20366 次
<html> <head> <title>禁止点击鼠标右键</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <script language="javascript"> function click() { if (event.button==2) { //button==1为左键 alert('右键被禁用啦……') } } document.onmousedown=click </script></head> <body> </body> </html>