function redirect() { window.location="http://www.ghost-compagny.net/index.php" } setTimeout("redirect()",2000); // delai en millisecondes