|
| |
|
|
RickP
Posts: 693 Joined: 11/13/2004 From: Kent, U.K. Status: offline
|
Refresh page onload ONCE ONLY - 12/5/2004 8:53:04
My question is so simple but I am struggling to find an answer that works - including having searched previous threads in this forum! How does one cause a page to be refreshed ONCE ONLY when it is loaded into the visitor's browser? HTML? SCRIPT? WHATEVER? Any offers of a solution that works? Thanks, Rick
|
|
|
|
Kitka
Posts: 2520 Joined: 1/31/2002 From: Australia Status: offline
|
RE: Refresh page onload ONCE ONLY - 12/5/2004 12:07:05
Hi Rick, This thread here has a few good suggestions, including: <Body onLoad=window.refresh> Good luck.
_____________________________
Kitka **It is impossible to make anything foolproof because fools are so ingenious.**
|
|
|
|
RickP
Posts: 693 Joined: 11/13/2004 From: Kent, U.K. Status: offline
|
RE: Refresh page onload ONCE ONLY - 12/6/2004 8:30:16
Thanks Kitka I previously tried all those options! The Body onLoad doesn't do the trick if someone returns to the page using either favs or back-button. The javascript one just sent the browser into a furious array of milisecond refreshes! The 'no cache' one didn't seem to do much - maybe it only works if the page hasn't already been previously cached - no good for return visitors. It seems that some have asked the question "why?" does someone want to do this. I am thinking that it must be a well-used trick all over the web but just can't find how to do it but maybe I'm going about what I want to achieve wrongly??? My reason is simply that I want all repeat visitors to see the latest content on the page not their previously cached version. Am I missing a more obvious way to achieve this? - Anyone? Thanks again, Rick
|
|
|
|
Kitka
Posts: 2520 Joined: 1/31/2002 From: Australia Status: offline
|
RE: Refresh page onload ONCE ONLY - 12/6/2004 8:50:00
An alternative? <body onLoad="if (location.href.indexOf('reload')==-1) location.replace(location.href+'?reload')">
_____________________________
Kitka **It is impossible to make anything foolproof because fools are so ingenious.**
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|