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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I force a user's browser to auto refresh a page? 1

Status
Not open for further replies.

jrpatdlgs

Programmer
Mar 28, 2000
62
US
We frequently send out notices that something new has been added to our web site. We never fail to get a call or two from someone who says the new item is not on the site. The answer is always that the browser had loaded the page from the temporary internet files cache and that the "refresh" button needed to be pushed.

Is there any html code (or any other code) that can be added to a web page to force the user's browser to refresh the page instead of loading an older version from cache?

Thanks for the help folks.
 
After re-reading your post I realize you may have been asking something slightly different, sorry.

<meta HTTP-EQUIV=&quot;Refresh&quot; CONTENT=300>

Adding this tag will refresh the browser after 300 milliseconds. Change the number 300 to whatever you want.

This works well for pages that people will call up and stay on for long periods of time, if the contenet is updated frequently this will force a reload so they can see the content.

Word of warning, if you have a form on this page it will clear all the fields, users dislike that tremendously. I found that out the hard way.

Hope this helps.
» » » » » »
Mike Barone
FREE and Pro CGI/Perl Scripts

FREE Scripts
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top