When you click a URL to reach to a page X but internally you are directed to another page Y that simply happens because of page re-direction.
Example 1 (Web Page Redirection):
You can show an appropriate message to your site visitors before redirecting them to a new page. This would need a bit time delay to load a new page. Following is the simple example to implement the same:
- ‘delayer()’ – The function we want setTimeout() to execute after the specified delay.
- 5000 – the number of millisecods we want setTimeout() to wait before executing our function. 1000 miliseconds = 1 second.