javascript wait and redirect code example
Example: javascript redirect after 5 secinds
setTimeout(function(){
window.location.href = 'https://url.com';
}, 5000);
setTimeout(function(){
window.location.href = 'https://url.com';
}, 5000);