Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to delay redirect in javascript

// redirect to google after 5 seconds
window.setTimeout(function() {
    window.location.href = 'http://www.google.com';
}, 5000);
 
PREVIOUS NEXT
Tagged: #delay #redirect #javascript
ADD COMMENT
Topic
Name
9+5 =