禁用后退按钮的浏览器 [英] Disabling Back button on the browser

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

问题描述

我写的应用程序,如果用户打回,它可能会重新发送相同的信息,并弄乱的数据流和完整性。我如何禁用它谁是有和无?JavaScript的用户

I am writing an application that if the user hits back, it may resend the same information and mess up the flow and integrity of data. How do I disable it for users who are with and without javascript on?

推荐答案

这是不可能的,可悲的。不过,考虑你的应用程序导航模型。您使用的邮政/重定向/获取PRG模式? <一href=\"http://en.wikipedia.org/wiki/Post/Redirect/Get\">http://en.wikipedia.org/wiki/Post/Redirect/Get?

It's not possible, sadly. However, consider your applications navigation model. Are you using Post/Redirect/Get PRG Model? http://en.wikipedia.org/wiki/Post/Redirect/Get?

此模式较为后退按钮比回传模式友好。

This model is more back button friendly than the Postback model.

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

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