js鼠标键禁用功能

页面完全禁用右键

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <script language="javascript"> 
function stop() 
{ 
return false; 
} 
document.oncontextmenu=stop; 
</script>
</head>
 <body >5555
 </body>
</html>

 

posted @ 2015-09-02 11:44  山水中华  阅读(779)  评论(0编辑  收藏  举报