<script language="javascript">
//屏蔽鼠标右键、ctrl+n、shift+f10、f5刷新、退格键
//屏蔽f1帮助
function window.onhelp()
{
return false
}
function keydown()
{
//alert(event.keycode);
//屏蔽 alt+ 方向键 ← 屏蔽 alt+ 方向键 →
if ((window.event.altkey)&&((window.event.keycode==37)||(window.event.keycode==39)))
{
//alert("不准你使用alt+方向键前进或后退网页!");
event.returnvalue=false;
}
//屏蔽退格删除键,屏蔽 f5 刷新键,ctrl + r
if ((event.keycode==116)||(event.ctrlkey && event.keycode==82))
{
event.keycode=0;
event.returnvalue=false;
}
//屏蔽 ctrl+n
if ((event.ctrlkey)&&(event.keycode==78))
{
event.returnvalue=false;
}
//屏蔽 shift+f10
if ((event.shiftkey)&&(event.keycode==121))
{
event.returnvalue=false;
}
//屏蔽 shift 加鼠标左键新开一网页
if (window.event.srcelement.tagname == "a" && window.event.shiftkey)
{
window.event.returnvalue = false;
}
//屏蔽alt+f4
if ((window.event.altkey)&&(window.event.keycode==115))
{
window.showmodelessdialog("about:blank","","dialogwidth:1px;dialogheight:1px");
return false;
}
//屏蔽ctrl+a
if((event.ctrlkey)&&(event.keycode==65))
{
return false;
}
}
</script>