Auto refreshing with Javascript?
<p>Sorry if this is a simple question (or answered before), but could anyone tell me how to download a page with JScript? I want to use Javascript to download the page "example.php" on my server every five seconds and compare it with what it was before. If the page changes, I would like the Javascript code to refresh the page hosting the Javascript. Does that make sense ? Somethingl ike:</p>

<p><code>string downloaded = DownloadPage("example.php");</code></p>

<p><code>timer x = new timer(5);</code></p>

<p>when the timer goes off:</p>

<p><code>if(DownloadPage("example.php") == downloaded){</code></p>

<p><code>RefreshPage();</code></p>

<p><code>}</code></p>

<p>Thanks, and sorry this was probably such an easy question :)</p>
