JS的禁止右键+复制

来源:百度知道 编辑:UC知道 时间:2024/06/01 02:21:51
防盗

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>6-12.html</title>

<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="this is my page">
<meta http-equiv="content-type" content="text/html; charset=BIG5">

<!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
<script type="text/javascript">
function block(oEvent){
if(window.event)
oEvent=window.event;
if(oEvent.button==2)
alert("鼠标右键不可用");
}
document.onmousedown=block;
</script>
</head>

<body>
<p>屏蔽鼠标右键</p>
</body>
</html>
<