Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Page Refresher

Status
Not open for further replies.

elead

Technical User
Apr 20, 2001
38
US
Don't know JS but I am looking for a snippet to accomplish the following task:

I have two web pages. The first page I want to load, let the viewer see it for 30 seconds then be redirected to the second page. Once the second page is diplayed It needs to refresh itself (postback) every 20 seconds for a period of 5 minutes then be redirected back to the first page.

Thanks in Advance
 
Since you've not supplied any of your own code that you've attempted to do this task I'll guess that you haven't done any yet.

That said, you're probably unsure of where to start. So, if I were to tackle this problem I would use the setTimeout function to refresh the page. Additionally, I would probably implement some sort of cookies to keep track of how long the page has been refreshed, that way you can establish when you need to jump back to the original page.

Use google to research these 2 concepts and come up with a gameplan of how you want to solve this problem. Attempt to write some code to get it to work. If you get stuck on something while you're coding it, then post back to this forum with what you've accomplished so far and where you're stuck. Then we'll be glad to help you work it out.

It will be much more beneficial to you in the long run to do a bit of research and try to learn how to fix this problem instead of us spoon-feeding the solution to you. Besides, that is not the intent of tek-tips.

-kaht

How much you wanna make a bet I can throw a football over them mountains?
sheepico.jpg
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top