outdoorxtreme Posted April 25, 2014 Share Posted April 25, 2014 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? Quote Link to comment https://forums.phpfreaks.com/topic/288012-page-redirect-question/ Share on other sites More sharing options...
denno020 Posted April 26, 2014 Share Posted April 26, 2014 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. Quote Link to comment https://forums.phpfreaks.com/topic/288012-page-redirect-question/#findComment-1477301 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.