Create a Simple Countdown Timer with Url-Redirection with JQuery October 23, 2011Posted by Tournas Dimitrios in JQuery.
So, you want to set things to happen after a certain amount of time? Well, the setTimeout function can help you create some nice scripts that will use time delays to make things happen .This is a simple script that counts down a customized time and at the end redirects he browser . The value of the timer is displayed on the browser window , so that the visitor get’s notified for this functionality . An example where this script could be used is when submitted contact-form content where successfully transmitted (validated and emailed ) , the visitor get’s notified with a message and that a redirection will occur in xx seconds . The script depends on JQuery’s “setTimeout” function , so it can be used if the library is already embedded into the web-page . See a demo of this script .