<script type="text/javascript">
//禁止刷新
function jinzhiSX(){
//禁止F5键
document.onkeydown = function(){
if(event.keyCode==116){
event.keyCode = 0;
event.cancelBubble = true;
return false;
}
}
//禁止右键弹出菜单
document.oncontextmenu = function(){
return false;
}
}
//启用刷新
function qiyongSX(){
//启用F5键
document.onkeydown = function(){
if(event.keyCode==116){
event.keyCode = 0;
event.cancelBubble = false;
}
}
//启用右键弹出菜单
document.oncontextmenu = function(){}
}
</script>
js禁止、启用刷新
最新推荐文章于 2024-07-18 22:31:42 发布