Automatically Redirect to Another Page after Time Delay

ATTENTION: THIS IS OUR OLD SITE. TO SEE OUR NEW WEBSITE, CLICK HERE.

How to automatically redirect to another web page after a short time delay e.g. 10 seconds. This is useful for displaying a welcome message or animation before arriving at your websites home page.
The code below runs after 10 seconds (10,000 milliseconds), thereafter redirecting the user to a new page called '/main' ... you would replace this with your own desired location. The code is placed in the onReady function so that the time delay of 10 seconds starts counting down immediately after page loads.
Please login or sign-up (it's free!) to view our code. Refresh the page if already logged in.
Disclaimer: To the best of our knowledge, this code works for its stipulated purpose. If you find an error in our code, or know of a better way to achieve the same result - please contact us! We will help where we can, however please be aware that the code is provided 'as is' and without a promise of support in using or implementing it.
  • Facebook Social Icon
© CorvidCodeBank