|
|
Q832 Can I detect when the page was last loaded, and when the page is reloaded - say the user presses the back button - then reload the page?
irt.org | Knowledge Base | JavaScript | Redirect | Q832 [ previous next ] Q832 Can I detect when the page was last loaded, and when the page is reloaded - say the user presses the back button - then reload the page?If you include the time since year dot in miliseconds as part of the locations search property - then when the page is loaded, if the time isn't there, then reload, if the time is there, then check to see how long ago that time was - if its more than say a 10 seconds you can reload it again with another time:
To avoid the double load of the document - then you could alter links to the document to provide the time in the first instance:
Feedback on 'Q832 Can I detect when the page was last loaded, and when the page is reloaded - say the user presses the back button - then reload the page?' |
-- div -->
|