Update
Moderator: General Moderators
-
Silver_Eclipse
- Forum Commoner
- Posts: 61
- Joined: Sun Aug 18, 2002 7:26 pm
Update
does anyone know how to make a window refresh in a set amount of time after it loads?
- hob_goblin
- Forum Regular
- Posts: 978
- Joined: Sun Apr 28, 2002 9:53 pm
- Contact:
<meta> tags, google it.
-
Silver_Eclipse
- Forum Commoner
- Posts: 61
- Joined: Sun Aug 18, 2002 7:26 pm
- mydimension
- Moderator
- Posts: 531
- Joined: Tue Apr 23, 2002 6:00 pm
- Location: Lowell, MA USA
- Contact:
since php is not run on the client side you can't use it to force a refresh on the users browser. you could however use php to quickly modify the refresh rate:
Code: Select all
<?php
$refreshValue = 30; //seconds
?>
<meta http-equiv="REFRESH" content="<?php echo $refreshValue; ?>" />Code: Select all
<meta http-equiv="Refresh" content="SECONDS;FILENAME">Something like
Code: Select all
function refresh_page() {
location.href="FILENAME";
}
setTimeout("refresh_page()",TIMEINMILLISCONDS);- hob_goblin
- Forum Regular
- Posts: 978
- Joined: Sun Apr 28, 2002 9:53 pm
- Contact:
Code: Select all
<?
sleep('10');
header("Location: http://www.foo.bar");
?>