What is Page Redirection ? in JavaScript

Rate this post
Page redirection is the method or technique which we can transfer the values and page source to destination.this this vary simple.
You are also use to place a "redirect page" at the old location which, after a timed delay, will forward visitors to the new location of your webpage. 
You can do just this with a JavaScript redirection. you can also use Time Delay Redirect function.
<script type="text/javascript">
         <!--
            function Redirect() {
               window.location="http://www.tutorialspoint.com";
            }
         //-->
      </script>
<form>
 <input type="button" value="Redirect Me" onclick="Redirect();" />
</form>

//for page redirection
function delayer()
{
    window.location = "../blog.eduguru/javascript"
}
<body onLoad="setTimeout('delayer()', 5000)">
<h2>Prepare to be redirected!</h2>
<p>This page is a time delay redirect, please update your bookmarks to our new 
location!</p>
</body>
 
For any query or issue, feel free to discuss on http://discuss.eduguru.in

Leave a Reply

%d bloggers like this: