Redirect page through javascript

Simple Redirect Page

<script type="text/javascript">
   <!-- window.location = "http://www.google.com/" //-->
</script>

Time Delayed Redirect

<html>
<head>
<script type="text/javascript">
   <!-- function delayer(){
      window.location = "../javascriptredirect.php"
   } //-->
</script>
</head>
<body onLoad="setTimeout('delayer()', 5000)">
   <h2>Prepare to be redirected!</h2>
   <p>This page is a time delay redirect, Hang on while we redirect to another page.</p>
   </body>
</html>