禁用浏览器的后退按钮 [英] Disable browser's back button

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

问题描述

如何禁用浏览器的后退按钮(跨浏览器)?

How to disable browser's BACK Button (across browsers)?

推荐答案

这问题很类似这样<一个href=\"http://stackoverflow.com/questions/533867/whats-the-best-method-for-forcing-cache-expiration-in-asp-net\">one...

This question is very similar to this one...

您需要强制缓存过期这个工作。将下列code你的网页code的后面。

You need to force the cache to expire for this to work. Place the following code on your page code behind.

Page.Response.Cache.SetCacheability(HttpCacheability.NoCache)

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

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