Click to See Complete Forum and Search --> : send to another page after sometime


rogernem
February 21st, 2006, 01:59 PM
Let´s say a user access a certain page (test.php) to take an online test

I´d like that after 10 minutes he´s accessed this page that he would be redirect to another page saying that his time is up

How can I do that?? I dont want the page to be reloading or anything
I just want the user to access it and after sometime be redirect

wildfrog
February 21st, 2006, 02:06 PM
You can use the HTML Meta Refresh 'tag':
<meta http-equiv="refresh" content="60;url=http://www.someurl.com/">
This will redirect the web page to 'www.someurl.com' after 60 seconds.

- petter

PeejAvery
February 21st, 2006, 04:00 PM
Or using JavaScript...

<script language="JavaScript">
window.setTimeout("window.location='http://www.google.com'", 600000);
</script>

degsy
February 22nd, 2006, 08:18 AM
Just to note that you need some more validation or security. The person could simply click the back button or disable meta refresh.