I have a page in PHP that confirms or does not send the user's email through the contact page. I want it after 10 seconds (long enough for the confirmation prompt to be read), window.location
is the homepage of the site. I'm trying this way:
window.onload = function(){
setTimeout(window.location = "http://homedosite.com.br", 10000);
}
The problem is that when the confirmation page appears, simply window.location
is set without waiting for the 10 seconds. What could be happening?