computing
  • 11

Refresh a page once?

  • 11

Is there a way to use javascript to refresh a page once onLoad? w/out getting stuck in a loop?

I have this but it gets stuck in a loop:

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″>

<script type=”text/javascript”>
function refreshPage(){
window.location.reload( false );
}

</script>
</head>
<body onLoad=”refreshPage()”>
woot
</body>
</html>

PLEASE HELP

Share

1 Answer

  1. <body onLoad=”if (location.href.indexOf(‘reload’)==-1) location.replace(location.href+’?reload’)”>

    • 0