README.md

December 5, 2022 ยท View on GitHub

Force browser to reload or refresh

Description

How do I force a reload/refresh from the current page?

Found at http://www.irt.org

More Info

Submitted On
ByFound on the Web
LevelUnknown
User Rating4.6 (23 globes from 5 users)
Compatibility
CategoryInternet/ Browsers/ HTML
WorldJava
Archive File

Source Code

You can for JavaScript 1.1 use the location objects reload method:

Failing that you could try a meta tag that doesn't allow the page to be cached so that the following would reload:
The no cache meta tag needs to be placed in between the and tags: Or you could use the meta tag for expires, to always ensure that a newer copy is loaded: Or you could refresh the page automatically after a delay using the refresh meta: