jQuery Redirect to Another Page After 5 Seconds
In our example, we will use 2 seconds to redirect to another page by creating a button. After clicking on the created button "Redirected", the countdown will be started, and that button will redirect to entered url page after 5 seconds. The following example shows us the redirection to another given url page in jQuery.
The output of the above example is as follows:
After click on this, we will be redirected to another page. Consider the following screenshot: