18 view |
屏蔽功能键Shift,Alt,Ctrl、网页不会被缓存发布: 2007-6-21 | | (共有0条评论) 我要评论 |
〈script〉
function look(){
if(event.shiftKey)
alert("禁止按Shift键!"); //可以换成ALT CTRL
}
document.onkeydown=look;
〈/script〉
网页不会被缓存
〈META HTTP-EQUIV="pragma" CONTENT="no-cache"〉
〈META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate"〉
〈META HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT"〉
或者〈META HTTP-EQUIV="expires" CONTENT="0"〉