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!

Forcing an HTML page to reload?

Status
Not open for further replies.

lmarshall

MIS
Jun 11, 2002
108
US
Hey All,

Any idea how I would do this? Some users here are loading a page, where the cached version is displaying. I need to force the page to refresh itself when loaded.
I've tryied adding window.location.reload(); to the onload event in the body, it works but it constantly is reloading and not diplaying the page.

Thanks.
 
try either of these to load the page in the first instance


window.location.href = "URL"
OR
window.location.replace("URL")

paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top