屏蔽IE后退按钮在你链接的时候用 <a href="javascript:location.replace(url)">

解决方案 »

  1.   

    1、
    设置页面过期 Response.Expires   =   -1 
    Response.AddHeader   "Pragma ", "no-cache " 
    Response.AddHeader   "cache-ctrol ", "no-cache "
    2、
    <script language="javascript">
         window.ClearKey=function(){
     if (event.keyCode==8){
      event.returnValue=false;
      return false;
     }
      return true;
     }
     with (window.document){
      onkeydown=window.ClearKey;
     }
      </script>
      

  2.   

    http://topic.csdn.net/t/20031113/08/2455432.html
      

  3.   

    我知道有一种服务端代码中禁用浏览器缓存,这样当用户点击浏览器的“后退”按钮时就会提示“网页已过期....”,禁用浏览器的“后退”按钮(比如显示为灰色)我认为是没办法的。比如在ASP.NET中:Response.Expires = 0;为什么要禁用后退呢?如果是缓存导致AJAX无法正常工作的换,可以在回调的url中附加一个时间戳的查询字符串,这样每次回调时的url都不一样,缓存就不会捣乱了。例如:var url=callback.asp?p1=v1&p2=v2&timestampe=Date.Now()