Redirection in PHP (not with header)

Status
Not open for further replies.

HairyHun

Masturbating Bandit
Oct 11, 2007
576
2
0
Hi,

I am looking for a way to have a page that load. A little delay. Then load another page.

obviously the first page is loaded so I can't this:

header("Location: http://domain.tld/page.php");

But this is the only redirect method that keeps coming up.

Any other trick to just simply send someone on another page, even once the first page is loaded?

Thanks
HH
 


Basically this is what i need:

1. Have page load fully. (not something where it hangs or looks like it's TRYING to load while it waits for the 10 seconds)
2. Wait 10 seconds
3. Load new page


Thanks
HH
 
ok

<script type="text/javascript">
function waitAndSwitch() {
var x = setTimeout("window.location='http://somewhereelse.ok'",10000);
}
</script>

...

<body onload="waitAndSwitch();">

...
 
Status
Not open for further replies.