从后退按钮访问页面时强制页面刷新 [英] Force a page refresh when page visited from back button

查看:108
本文介绍了从后退按钮访问页面时强制页面刷新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当用户通过按下返回按钮从第2页返回时,如何强制页面1刷新页面?有没有vbscript或javascript的方法,或者它是否设置了'no cache'? 解决方案

设置第2页的cookie 。



如果在第1页检测到cookie,请重新加载页面。


How can I force a page refresh of page 1 when a user returns to it from page 2 by pressing the back button? Are there vbscript or javascript approaches or is it down to set the 'no cache' somehow?

解决方案

Set a cookie on page 2.

If the cookie is detected on page 1, reload the page.

这篇关于从后退按钮访问页面时强制页面刷新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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