单击浏览器的后退按钮时重定向另一个页面 [英] redirect another page when browser's back button clicked

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

问题描述

大家好
单击浏览器的后退按钮时,我需要一种代码来重定向其他页面而不是上一页...


谁能给我一个用javascript编写的代码......

谢谢与问候
vivekx2

Hello everyone
I need a coding to redirect another page not the previous page when browsers back button clicked...


Can anyone give me a coding for this in javascript......

Thanks and Regards
vivekx2

推荐答案

我不确定为什么要用这种方式设计.但这可能会有所帮助.
使用Response.Cache.SetNoStore();或window.history.forward(1);但是页面重定向可能有点棘手...

您可以参考此链接 http://www.4guysfromrolla.com/webtech/111500-1.shtml [ ^ ]
I''m not sure why you design in this way. but this may be helpful.
Use Response.Cache.SetNoStore(); or window.history.forward(1); but page redirection may be bit tricky...

you may refer this link http://www.4guysfromrolla.com/webtech/111500-1.shtml[^]


这篇关于单击浏览器的后退按钮时重定向另一个页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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