[JS][Function]avoid MouseButton、F5、F11、Alt、Ctrl、Shift..

全面禁止鼠標右鍵、F5、F11、Alt、Ctrl、Shift..

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>全面禁止鼠標右鍵、FX、Alt、Ctrl、Shift等</title>
</head>
<script>
function onKeyDown()
{
 if ((event.keyCode==116)||(window.event.ctrlKey)||(window.event.shiftKey)||(event.keyCode==122))
 {
 event.keyCode=0;
 event.returnValue=false;
 }
}
</script>
<script>
function yxl() {
if(window.event.altKey)
{
window.event.returnValue=false;
}
}
document.onkeydown=yxl
</script>
<body  bgcolor="#000000" text="#666666"  onkeydown="onKeyDown()" oncontextmenu="return false" onselectstart="return false" ondragstart="return false"  >
<p>該頁面禁止了鼠標右鍵,F5、F11、「應用程序」鍵,所有與alt、ctrl和shift有關的組合鍵(當然alt+f4和alt+home沒有屏蔽),並且禁止了鼠標文本選擇,你可以試試:)
  夠全了吧?</p>
<p> </p>
</body>
</html>