Google News
logo
JavaScript - Interview Questions
How to redirect a url using JavaScript ?
His 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>
Advertisement