Hi all,
I'm having trouble delaying the survey submit for 5 seconds. After 5 seconds the respondent should be redirected based the value of a set of answers. All works well, except for the delay. It seems like this should be straight forward, but I can't seem to get it to work.
// Interrupt the Next/Submit click
$('#movenextbtn, #movesubmitbtn').bind('click', function () {
var SumRating =document.getElementById('java331225X350X2914').value;
if(SumRating>=20){
$('div#redirect_popup').css({'display':''});
setTimeout(function() { window.location.href = "
plus.google.com/+Rep1stco/about
"; }, 5000 );
//window.top.location.href = "
plus.google.com/company/about
";
} else {
window.top.location.href = "
company.com
";
}
});
Any thoughts are always appreciated. Thanks!