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

Force newest page 1

Status
Not open for further replies.

RobinI

Technical User
Jun 4, 2001
4
US
Using Dreamweaver 3, is there a command that I can place within each .html file that will force the viewer to see the most recent version of the webpage?

I have a "News" page, and people are often complaining that even though they check it, they don't see the latest news...unless they know enough to always right click and refresh it.

I've tried placing the following in the head section:
<META HTTP-EQUIV=&quot;refresh&quot; content=&quot;240&quot;>
but it's not doing the trick. They click on News and if they don't see anything fresh they don't stick around.

Thanks
 
Hi,

try using this javascript in the head of your page and between script tags:
window.self.location.reload()


Haven't used it myself but I copied it some time ago from a webpage in case I might need it for future projects.

Your visitors still have to refresh the page the first time so the script wil be in the page that is in their computers cache.


Hope it helps, goaganesha
 
on the page that links to the news page put this in the link box for what to link to

news.htm?<%=Now()%>

this will force a new page to be loaded everytime the user follows the link Live long and make your kids suffer..
 
Hi

For a simple HTML way use these meta tags in the head of your pages:

Code:
<META http-EQUIV=&quot;expires&quot; CONTENT=&quot;0&quot;><META http-EQUIV=&quot;Pragma&quot; CONTENT=&quot;no-cache&quot;>

[fish] Derren
[Mediocre talent - spread really thin]
 
Thanks everyone! I ended up using the:
<META http-EQUIV=&quot;expires&quot; CONTENT=&quot;0&quot;><META http-EQUIV=&quot;Pragma&quot; CONTENT=&quot;no-cache&quot;>

and it is working perfectly! Really appreciate all your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top