前端设计

不能点右键、不用CTRL+A、不能复制

2011-04-01

彻底屏蔽左右键、不能复制
<body oncontextmenu=self.event.returnValue=false onselectstart="return false">

oncontextmenu="window.event.return&#118alue=false" 将彻底屏蔽鼠标右键 
 <body oncontextmenu="return false"> 忽视右键

<table border oncontextmenu=return(false)><td>no</table> 可用于Table

<body onselectstart="return false"> 取消选取、防止复制


onpaste="return false" 不准粘贴

oncopy="return false;" oncut="return false;" 防止复制

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>不能点右键、不用CTRL+A、不能复制</title>
</head>

<body
onkeypress="window.event.returnValue=false"
onkeydown="window.event.returnValue=false"
onkeyup="window.event.returnValue=false"
ondragstart="window.event.returnValue=false"
onselectstart="event.returnValue=false">
</body>
试试鼠标右键,试试CTRL+A全选,试试鼠标拖选复制?
</body>
</html>