<SCRIPT language=javascript>      
    function stop(){  
        clear();  
        return false;   
    }   
    document.oncontextmenu=stop;   
    function clear(){   
        window.location.reload();    
    }  
    document.onkeydown =document.onkeyup = document.onkeypress=function(){   
            clear();  
            return(false);   
    }  
  
    document.onselectstart=new Function('event.returnValue=false;');  
</SCRIPT> 

解决方案 »

  1.   

    去掉 window.location.reload();    ?
      

  2.   

    window.location.reload();  这个是重新加载当前页面,有这个肯定会刷新的
      

  3.   

    刷新没有动作,你可以偷换概念,完成下列内容和刷新页面没有区别。
    1.解除页面阻塞
    2.初始化定义,无论什么。
    3.解除监听事件。
    4.清空内存(垃圾收集 windows.CollectGarbage())
    5.清空macro-task(宏任务)
    6.DOM元素activeElement置空。
    应该就这些吧。当然,上述的条件中,要根据绑定的内容来加,并不是都需要执行。