8
I have a PHP page that confirms or does not send the user’s email through the contact page. I want after 10 seconds (long enough for the confirmation notice to be read), window.location
be the home page of the site. I am trying as follows:
window.onload = function(){
setTimeout(window.location = "http://homedosite.com.br", 10000);
}
The problem is that when the confirmation page appears, simply the window.location
is set without waiting for the 10 seconds. What may be happening?
Now it worked!
– Pedro Vinícius