This web page has examples of using ( window.location.href = ) to redirect you to another page.
Url's
Redirect From Page (ex_redirect_from.htm) - A new window is opened and loads the "From" web page. The "From" web page then redirects to the "To" web page in the same window.
Redirect To Page (ex_redirect_to.htm)
Contents of: ex_redirect_from.htm
<html>
<title>Redirect To Page</title>
<body>
<p>From this page.</p>
<script language="JavaScript"</script>
<!--
window.location.href = "ex_redirect_to.htm"
//-->
</script>
</body>
</html>
Contents of: ex_redirect_to.htm
<html>
<title>Redirect To Page</title>
<body>
<h1>Redirect To Page</h1>
<p>You were redirect to the page from ex_redirect_from.htm</p>
<p>
<a href = 'ex_redirect_from.htm'>ex_redirect_from.htm</a> - to test again. It will redirect you back to this page.
</p>
</body>
</html>