Determine if connection is dead on clientside
<p>I have a site which have a div in updatepanel, which is refreshed every 10 seconds, and I pass string result to div. If connection is dead, i get error that server is unavailable, which should not happen.</p>

<p>My question is, how to check clientside if connection is down, so I can just pass empty string to that div, and that page remains.</p>

<p>Thanks.</p>
