2010-05-04 124 views
3

我创建例如page1.html HTML页面的一些设置的onclick调用page2.html如何重新加载后退按钮单击该页面中

在点击返回按钮,第1页越来越加载后,所有以前的任何浏览器数据。我想完全重新加载页面,并且不想记住任何设置。

问候, 开发

回答

1

简单的就是过期1页 - 在页面的头部

+0

嗯有趣评论使用window.name来检查页面已被访问。你也可以在那里使用时间戳。 SECOND代码评论:http://dev.opera.com/forums/topic/224464 – mplungjan 2010-05-04 12:59:35

+0

我累了,但它不工作........... <?php include(“CheckProcessingData.php “); ?> <元HTTP- equiv =“expires”content =“0”> – Dev 2010-05-05 04:45:51

+0

meta http-equiv标记对某些标题不起作用。对于那些不工作的,你必须使用真正的头文件(例如通过PHP中的header()) – 2010-05-05 07:24:15

2

设置以下头,例如

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

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

我试过这个,点击后退按钮时不刷新页面 – 2013-03-28 17:28:47

相关问题