JavaScript redirect
www.site.com/file.php?page=www.redirectedsite.com
At first i tried this, combining some php
<html> <head> <script type="text/javascript"> function delayedRedirect(){ window.location = "<?php echo $_GET['page']; ?>" } </script> </head> <body onLoad="setTimeout('delayedRedirect()', 3000)"> <h2>You'll be redirected soon!</h2> </body> </html>
I have tried to explain the best I can, any help would be wonderful
Thanks In advance!
I have also tried this but it dosent even pick up the redirect url...
<html> <head> <script type="text/javascript"> var link = getUrlVars()["page"]; function delayedRedirect(){ window.location = link } </script> </head> <body onLoad="setTimeout('delayedRedirect()', 3000)"> <h2>You'll be redirected soon!</h2> </body> </html>
-
Amir Khan -
Thanks
{{ DiscussionBoard.errors[1622717].message }} -