Jump to Real's How-to Main page

Force a reload

An easy way to force a reload (without using the browser cache) is to add a dummy parameter to URL request.
dummyDate = new Date() ; 
dummyParameter = "?" + dummyDate.getTime()
self.location.href = "myPage.html" + "?" + dummyParameter

The dummyParameter must be different for each request.

This tip is ok for static html or jsp/asp page.

See also this HowTo


If you find this article useful, consider making a small donation
to show your supportfor this Web site and its content.

Written and compiled by Réal Gagnon ©1998-2006
[ home ]