{"id":7540,"date":"2005-01-04T13:01:00","date_gmt":"2005-01-04T13:01:00","guid":{"rendered":"https:\/\/www.htmlgoodies.com\/uncategorized\/reloading-the-page\/"},"modified":"2022-07-07T17:50:54","modified_gmt":"2022-07-07T17:50:54","slug":"reloading-the-page","status":"publish","type":"post","link":"https:\/\/www.htmlgoodies.com\/getting-started\/reloading-the-page\/","title":{"rendered":"How to Reload the Page"},"content":{"rendered":"
…use these to jump around or read it all<\/em><\/strong><\/p>\n The answer is pretty easy so I usually just wrote and answered in the email. While going through my notebook of possible topics, this one came up as one that is asked about a fair amount so I thought I’d write up a quick tutorial.<\/p>\n The trick to reloading the page is to force the browser to not look into the cache, but rather to again make a connection to the Web and bring up the document from the server. Most people know it can be done by hand by holding the shift key and clicking the “Refresh” (on IE) or “Reload” (on Navigator) buttons. If you didn’t know…now you do.<\/p>\n That’s a proven method but it’s not exactly very pretty to have text asking the user to hold and click. You want your site to do the trick either by itself, or by offering a method whereas the user simply clicks and the browser does it for them.<\/p>\n Below I have two methods. One will reload every so many second all on its own and the other will reload when the user asks for it. <\/a><\/p>\n This one’s nice and easy. I’ll give you the code. Copy and paste it into the document you wish to reload. Once in there, change the number of seconds you wish the page to wait before starting the reloading process. This code goes in between the HEAD<\/a>tags.<\/p>\n I don’t have a refresh on this page because the darn thing would just keep refreshing and there’s nothing on this page that will update. <\/a><\/p>\n I’ve seen this done a number of ways, but this is my favorite because it, again, forces the browser to load from the server. It is true that pages can become cached if they are reloaded a great many times, but I have had pretty good success with this. Try it:<\/p>\n <\/p>\n
\n[Reload From A User’s Click<\/a>]
\n[Use the Full URL?<\/a>]<\/center>I started to get email asking for this effect right around the time Internet stocks took off. People wrote asking how the stock sites got their pages to reload all by themselves.<\/p>\n
\nReload All By Itself<\/h2>\n
\nReload From A User’s Click<\/h2>\n