Do it with the PHP header tags, it instantly re-directs you.
Printable View
Do it with the PHP header tags, it instantly re-directs you.
Hamilliet? Dear lordeh.
If you still need the JS..
Code:window.location = 'page.html';
Its best to do it in PHP because then your browser doesn't have to load any content, so the redirect is quicker.
Yeah, using <?php header('Location: http://.google.com'); ?> is the best way to go, just make sure there's no output before you use it. Otherwise you'll get an error.