禁用浏览器后退方法

禁用浏览器后退方法
 
2007-08-20 13:00
禁用浏览器后退之方法比较
history只有back forward和go方法
history.length
改写以上方法,没用
location.replace


在该页的头部加上

Response.Expires = 0
Response.ExpiresAbsolute = Now - 1
Response.AddHeader "progma", "no-cache"
Response.AddHeader "cache-control", "private"
Response.CacheControl = "no-cache"

使该页面访问后,后退即失效

你可能感兴趣的:(禁用浏览器后退方法)