We will try first with some simple page redirect example and then we will add different features to it.
You can also redirect by using slef.location like this
Redirecting after Some time delayIf you are using the above code then the page will redirect to google.com as soon as the page loads to client browser. Here we can delay the process of redirection and show a message. We will be using our timer function to do this. Here is the code.
Try to add one count down display to show seconds left for page redirect to work.