page redirect after a few seconds
setTimeout(function(){
window.location.href = 'https://www.google.com';
}, 5000); //5000ms is 5 seconds
Are there any code examples left?
New code examples in category Javascript
setTimeout(function(){
window.location.href = 'https://www.google.com';
}, 5000); //5000ms is 5 seconds