javascript - How to reload the page on back button click in any browser - Stack Overflow

I have created the HTML page for example page1.html with some setting onclick invoke page2.html On Clic

I have created the HTML page for example page1.html with some setting onclick invoke page2.html

On Click Back button the page1 is getting loaded will all previous data. I want plete reload of page and donot want to remeber any setting.

Regards, Dev

I have created the HTML page for example page1.html with some setting onclick invoke page2.html

On Click Back button the page1 is getting loaded will all previous data. I want plete reload of page and donot want to remeber any setting.

Regards, Dev

Share Improve this question asked May 4, 2010 at 12:45 DevDev 311 silver badge2 bronze badges 0
Add a ment  | 

2 Answers 2

Reset to default 2

Set the following headers:

Pragma: no-cache
Cache-control: no-cache
expires: 0

Simplest is to expire page1 - for example

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">

in the head of that page

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745411630a4626559.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信