Redirection JavaScript après 5 séquences
setTimeout(function(){
window.location.href = 'https://url.com';
}, 5000);
Codelerk
setTimeout(function(){
window.location.href = 'https://url.com';
}, 5000);
<!DOCTYPE html>
<html>
<body>
<script>
setTimeout(function(){
window.location.href = 'https://www.tutorialspoint.com/javascript/';
}, 5000);
</script>
<p>Web page redirects after 5 seconds.</p>
</body>
</html>
// Redirect to index page after 5 sec
setTimeout(function(){ window.location="index"; },5000);