Forum Moderators: phranque

Message Too Old, No Replies

Website reloading...

How to reload the site only once while entering it...

         

yaro

9:28 pm on Feb 26, 2004 (gmt 0)



Hi,

When some people are visiting my website they don't see the latest one - the problem is that it's loaded from temporary internet files (stored on HDD) not from web location. In order to reload the site user should click at the 'refresh' button in his browser.
I want to make something like this: when someone is entering the website I call window.location.reload() (from JavaScript) but I don't know what event should I use to handle it. If I use e.g. onload="refresh_func()" then the function is looped, and all is crashed.
Is there a way to call function window.location.reload() only once while loading the website?
Or is there else way to reload the page from its location while loading it (in order to avoid loading from temp web files)?

Thanks in advance,
yaro

thehittmann

6:14 am on Feb 27, 2004 (gmt 0)

10+ Year Member



<meta http-equiv="refresh" content="5;URL=http://www.yourdomain.com/">

The number after content is time in seconds, and replace the URL with your own. This should be pasted between the head tags of your page.