Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Mar 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    onComplete: function - .html?

    Hi All,

    I'm using the countdown code supplied at www.littlewebthings.com and would like to change the onComplete function so that when the countdown finished the page is forwarded to another .html page?

    Code:
    // Set the Countdown
    02	jQuery(document).ready(function() {
    03	    $('#countdown_dashboard').countDown({
    04	        targetOffset: {
    05	            'day':      0,
    06	            'month':    0,
    07	            'year':     0,
    08	            'hour':     0,
    09	            'min':      0,
    10	            'sec':      5
    11	        },
    12	        // onComplete function
    13	        onComplete: function() { $('#complete_info_message').slideDown() }
    14	    });
    15	});
    Many thanks,

    Keith

  • #2
    Regular Coder Lerura's Avatar
    Join Date
    Aug 2005
    Location
    Denmark
    Posts
    878
    Thanks
    0
    Thanked 114 Times in 113 Posts
    onComplete: function() { location.href='TheNewPage.html' }


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •