如何禁用“后退”功能? 屏蔽IE后退按钮在你链接的时候用 <a href="javascript:location.replace(url)"> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 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> http://topic.csdn.net/t/20031113/08/2455432.html 我知道有一种服务端代码中禁用浏览器缓存,这样当用户点击浏览器的“后退”按钮时就会提示“网页已过期....”,禁用浏览器的“后退”按钮(比如显示为灰色)我认为是没办法的。比如在ASP.NET中:Response.Expires = 0;为什么要禁用后退呢?如果是缓存导致AJAX无法正常工作的换,可以在回调的url中附加一个时间戳的查询字符串,这样每次回调时的url都不一样,缓存就不会捣乱了。例如:var url=callback.asp?p1=v1&p2=v2×tampe=Date.Now() jquery的$(window).resize()怎么用原生JS实现? 请教获取iframe内部网页的标题和网址的问题 这段简单的ajax为何在FireFox下没有效果 asp.net 中的客户端 pageload 事件怎么写??!!!! js能否实现excel或word中吹出图形的功能。 寻找高手给一小段js代码添加点注释,实在看得辛苦 如何让页面上某些元素脱离全页面的click事件呢 如何使用两次弹出小窗口? 怎么实现着功能 关于验证表单的问题 [求助]关于JS事件模型 请朋友看一下我的理解是错误的吗??
设置页面过期 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>