Jump to content


Photo

Page Redirect Question


  • Please log in to reply
1 reply to this topic

#1 outdoorxtreme

outdoorxtreme

    Newbie

  • New Members
  • Pip
  • 6 posts

Posted 25 April 2014 - 09:16 AM

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

denno020

    Advanced Member

  • Members
  • PipPipPip
  • 712 posts
  • LocationAustralia

Posted 25 April 2014 - 07:31 PM

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

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com