How to redirect a url using JavaScript?
It is very simple to do a page redirect using JavaScript at client side. To redirect your site visitors to a new page, you just need to add a line in your head section as follows −
<head> <script type="text/javascript"> <!-- window.location="http://www.newlocation.com"; //--> </script> </head>