Javascript: Force a reload from the server, how?
<p>I just found a snippet of code today as I need to refresh a page of mine so that a PHP script can run again to show new results from the DB every minute or so.</p>

<pre><code>if (document.images)
    setTimeout('location.reload(true)',1000*60*15); // forces a reload from the server
else
    setTimeout('location.href = location.href',1000*60*15);  // just reloads the page
</code></pre>

<p>Whats the difference between the two? I mean do they not reload the page? How can the JS code force a reload from the server?</p>

<p>Thanks all</p>
