Answers for "add time before redirect js"

1

how to delay redirect in javascript

// redirect to google after 5 seconds
window.setTimeout(function() {
    window.location.href = 'http://www.google.com';
}, 5000);
Posted by: Guest on January-11-2020
2

javascript redirect after 5 secinds

setTimeout(function(){
            window.location.href = 'https://url.com';
         }, 5000);
Posted by: Guest on November-25-2019

Code answers related to "Javascript"

Browse Popular Code Answers by Language