如何使用java脚本禁用浏览器后退按钮 [英] How to disable the browser back button using java script
本文介绍了如何使用java脚本禁用浏览器后退按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
尝试在javascript中使用window.history.forward(1),但我的页面变成空白,显示错误
此网页的本地副本已过期,网站要求您下载再次。
解决方案
请参阅 http://stackoverflow.com/questions/12381563/how-to-stop-browser-back-button-using-javascript [< a href =http://stackoverflow.com/questions/12381563/how-to-stop-browser-back-button-using-javascripttarget =_ blanktitle =New Window> ^ ]
Tried with using window.history.forward(1) in javascript but my page goes blank giving the error "
The local copy of this webpage is out of date, and the website requires that you download it again.
"
解决方案
Refer this http://stackoverflow.com/questions/12381563/how-to-stop-browser-back-button-using-javascript[^]
这篇关于如何使用java脚本禁用浏览器后退按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文