Sunday 28 July 2019

Express: Redirecting the User to another Route after waiting a specific amount of seconds.

How can i go about Redirecting the User to another Page. 5 Seconds after the current page has loaded.I have a login form. And when its submitted The User is Presented with an Alert with an Error message. If there isn't an error message, It shows a Success alert. I want to make it so that after 5 seconds of the Success Alert being shown, The User is redirected to their Dashboard.Of course this is something that i can live without. Its just something cool i wanna implement and it will also increase my knowledge about how to solve a similar problem if any arise.

Submitted July 28, 2019 at 03:59PM by Demoncious

No comments:

Post a Comment