不能直接屏蔽 只有通过location.replace("xxxx")来做页面跳转,不产生历史记录,也就不存在后退了。

解决方案 »

  1.   

    清除缓存
         
      <%           
          
      Response.Buffer     =     True           
          
      Response.ExpiresAbsolute     =     Now()     -     1           
          
      Response.Expires     =     0           
          
      Response.CacheControl     =     "no-cache"           
          
      %>
    2
    <script> document.onkeyup = function(){  if(event.keyCode == 8 )
     {
      window.event.returnValue = false;
     } }
    </script>
    3.<script> obj.onclick = function(){  window.history.forward(1); }
    </script>