You are here: irt.org | FAQ | JavaScript | Redirect | Q82 [ previous next ]
You can for JavaScript 1.1 use the location objects reload method:
<form> <input type="button" onClick="window.location.reload()" value="Reload"> </form>
Failing that you could try a meta tag that doesn't allow the page to be cached so that the following would reload:
<form> <input type="buttom" onClick="window.location.href=window.location.href"> </form>
The no cache meta tag needs to be placed in between the <HEAD> and </HEAD> tags:
<meta http-equiv="no-cache">
Or you could use the meta tag for expires, to always ensure that a newer copy is loaded:
<meta http-equiv="expires" content="Wed, 26 Feb 1997 08:21:57 GMT">
Or you could refresh the page automatically after a delay using the refresh meta:
<meta http-equiv="refresh" content="3;URL=http://www.some.org/some.html">