Take the 2-minute tour ×

Im using the code below to display a countdown timer on a webpage. If possible, how can I show content when the count down reaches zero?


<script type="text/javascript" src="../js/countdown.js"></script>
        date: "09 november 2012 12:00:00",
        format: "on"
    function() {
        // callback function
share|improve this question
There's a gazillion countdown plugins, maybe supplying a link to the one you're using would help ? –  adeneo Nov 2 '12 at 0:32
You have it right, add whatever code you need where it says callback function, and it will be executed when the countdown is complete. –  adeneo Nov 2 '12 at 0:55

1 Answer 1

up vote 0 down vote accepted

If you are using this jQuery countdown, the thing you want can be achieved by specifying the onExpire callback in options.

share|improve this answer
I wasnt using that countdown but ive have decided to change to that. I managed to get the expiration working, so that it goes to a differnet URL but my problem is now, that when someone goes back to the countdown page it just displays an countdown at 0. Any ideas how I can get to continually redirect when at 0? Thanks –  Oliver Evans Nov 2 '12 at 1:05
Sorry resolved this myself. Thanks for your help. –  Oliver Evans Nov 2 '12 at 1:11
You're welcome :) –  Ivan Blinkov Nov 4 '12 at 17:15

Your Answer


