Jump to content


Page Redirect Question

  • Please log in to reply
1 reply to this topic

#1 outdoorxtreme

  • New Members
  • Pip
  • Newbie
  • 6 posts

Posted 25 April 2014 - 02:16 PM

When I open my index page, I would like to redirect to another page after a set amount of time. Before the time expires I would like to display an animated loading icon centered in the screen. How do I go about doing this in jquery?

#2 denno020

  • Members
  • PipPipPip
  • Advanced Member
  • 750 posts
  • LocationAustralia

Posted 26 April 2014 - 12:31 AM

This is fairly straightforward. You'll want to use window.setTimeout() for specifying how long to wait. The function inside of setTimeout will contain your redirect code.

As for the loading image, just make that the only content on the page.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users