<script language="JavaScript" type="text/javascript"><!--
var reloaded = false;
var loc=""+document.location;
loc = loc.indexOf("?reloaded=")!=-1?loc.substring(loc.indexOf("?reloaded=")+10,loc.length):"";
loc = loc.indexOf("&")!=-1?loc.substring(0,loc.indexOf("&")):loc;
reloaded = loc!=""?(loc=="true"):reloaded;
function reloadOnceOnly() {
if (!reloaded)
window.location.replace(window.location+"&?reloaded=true");
}
</script><body onload="reloadOnceOnly()">
I'm currently using this to refresh the page ONCE on load.
It works fine, except when I use
HTML Code:
<a href="javascript: history.go(-1)">Click to go back</a>
Thing is, I use PHP to delete the user, then it says " User Deleted, Click to go back" they click back, but it doesnt update the userlist until it is manually refreshed.
Anyone have any idea how I can make it refresh always? (only once per page load though)
if you're using PHP, can't you use "header("Cache-Control: no-cache, must-revalidate"); " to always force a new copy of the page and to not cache the page?