Delay automatic url redirect with jquery?
You can just use setTimeout()
directly, like this:
setTimeout(function() { window.location.href = "/NewPage.aspx";}, 2000);
You could use jQuery Timer. Here is the code (also found in this article):
// This will hold our timervar myTimer = {}; // delay 2 seconds myTimer = $.timer(2000, function() { //redirect to home page window.location = "/RedirectTimer/Home.aspx";});