<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>
JS屏蔽鼠标右键
最新推荐文章于 2024-08-12 09:24:46 发布