Redirect timer on successful WebForm submition I'm asked to introduce auto-redirect (to the home page) on the confirmation page of WebForm (i.e. when user sends data, he gets on the page saying "Thank you! You submition has been received, etc..." ). And I'm asked to make a redirect after some time having past, let,s say, 10 seconds.

Seems that I have to introduce some js altering but I don't know how to do this properly.

Thank you!
Add this code in webform-confirmation.tpl.php

$(document).ready(function() {
  var delay = 10 ;
  var url = "http://google.com";
  function countdown() {
  setTimeout(countdown, 1000) ;
  $('.webform-confirmation').html("Redirecting in "  + delay  + " seconds.");
  delay --;
  if (delay &lt; 0 ) {
  window.location = url ;
  delay = 0 ;
  }
 }
countdown() ;
});