如何禁用浏览器的后退按钮 [英] How to disable browser's back button

查看:60
本文介绍了如何禁用浏览器的后退按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友,

我正在使用Asp.net Framework 3.5,我想禁用浏览器的后退按钮.
如果有人有解决办法,请告诉我.

在此先感谢您.

Hello friend,

I am using Asp.net framework 3.5,i want to disable brower''s back button.
if any body having solution,please let me know.

Thank''s in Advance.

推荐答案

禁用浏览器从Asp.Net退出的后退功能 [ ^ ]

或从以下问题中检查
Disabling browser''s back functionality on sign out from Asp.Net[^]

Or check from the questions here[^].


检查一下:

注销后浏览器后退按钮问题 [
check this out:

Browser back button issue after logout[^]

hope it helps :)


要添加到Prera​​k的答案中,请查看以下链接:
1.
三种禁用浏览器后退按钮的方式 [ ^ ]
2. 使用Java脚本来限制用户在浏览器中按下后退按钮 [ ^ ]
3. 彻底检查浏览器后退按钮 [简单解决方案 [
希望这会有所帮助.
一切顺利.
To add to Prerak''s answer, have a look at following links :
1. Three ways to disable browser back button[^]
2. Use Javascript to restrict user from pressing back button in browser[^]
3. A Thorough examination of browser back button[^]
4. Simple solution[^]

Many of the experts suggest not to disable expected browser behaviour. Instead make your pages handle the possibility of users going back. In other words redirect the user to certain page when user tries to press back button.

Hope this helps.
All the best.


这篇关于如何禁用浏览器的后退按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆