Javascript redirect

Posted by Anandhan Subbiah on Apr 30, 2007 in Technical ArticlesNo comments

This simple code snippet will redirect users from the current location to the new window location. The index.php file that i hosted crashed for some reason so I created this new file index.html to redirect to my blog so the users will not see a error page.

window.location=”http://anandhansubbiah.com/blog“;
You have to include this within the head tag.

Leave a comment