Re: reload a page
| From: | John Coggeshall | Date: | Tue, 13 May 2003 08:11:25 +0000 |
| Subject: | Re: reload a page | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-147404@lists.php.net to get a copy of this message | ||
> > Hi,
> > I want to reload a page each time it is reached by pressing "back"
> > button.
If you want to refresh the page (aka click 'refresh') you can add:
<META HTTP-EQUIV="refresh" CONTENT="X;<?php echo
$_SERVER['PHP_SELF'];
?>">
To your HTML document between the <HEAD> tags. the X represents the
number of seconds before the refresh occurs.
If you want to actually go back a page, you'll need to go lookup the
method on a Javascript site. I believe 'history.back()' might work as
the method call, but don't quote me on that.
John
--
-~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~-
John Coggeshall
john at coggeshall dot org http://www.coggeshall.org/
-~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~-