如何防止返回上一页 [英] How to prevent from going back to the previous page
本文介绍了如何防止返回上一页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
防止当前页面:Page2返回上一页Page1 ...
我在网上看到有限的鳕鱼,没有什么能完美发挥作用,所以我需要最好的一个...
朋友...面对很多问题后,Bcoz我敲了一下CODEPROJECT.com,becoz d Culits给了我最好的解决方案...
在此先感谢您
谢谢你
Sushil Dharmar
Prevent your current Page: Page2 from going back to the Previous Page Page1...
I had seen finite cods in the net nothing worked perfect so i need d best one...
Friends... Bcoz after facing the problem a lot i knock the CODEPROJECT.com, becoz d Culits give me the Best Solution...
Thanking you in Advance
Thanking you
Sushil Dharmar
推荐答案
我确定您的意思是与缓存相关的问题.试试这个技巧/窍门
注销后浏览器后退按钮问题 [
I''m sure you meant the cache related issue. Try this Tip/Trick
Browser back button issue after logout[^]
没有确定的方法可以做到这一点.
您实际上可以使用Javascript禁用后退按钮-问题是当用户禁用JavaScript时,无法控制后退按钮.
另一个合理的解决方法此处 [
There is no sureshot way to do this.
You can actually disable the back button using Javascript - the problem is when the user disables JavaScript, there is no control over the back button.
Another reasonable workaround here[^], but again not a pretty solution.
正如其他人所说,这是不可能的,因此您需要使代码正常工作.如果thatraja的答案不能解决问题,请提出一个更具体的问题并记住,禁用后退按钮是不可能的.也是不礼貌的.
As others said, it''s impossible to do this, and therefore you need instead to make your code work properly. If thatraja''s answer did not solve it, ask a more specific question and remember, it is IMPOSSIBLE to disable the back button. It''s also rude.
这篇关于如何防止返回上一页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文