Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: 禁用浏览器上的后退按钮
在asp.net的朋友如何做到这一点?
如果我是贵公司的(潜在)客户,而你试图剥夺我浏览器的功能,我会生你和你的公司的气。你不希望这种情况发生。
如果您的用户已注销并使用后退按钮转到过时的 URL,请检测到这一点(这很简单!)并向他显示一个页面,告诉他那里没有可看的东西。更好的是,将他带到您应用程序的主页或其他地方。
如果不使用 javascript,您无法禁用浏览器中的后退按钮,即使这样,也可以在客户端机器上关闭 javascript
http://forums.asp.net/t/989339.aspx