Here is the code
In the above code check this line
This line redirects the browser to a different page after 2 seconds. You can change the time duration by changing 2 seconds to any other value.
Used on my webiste,It fully works without any errors!