Javascript to check internet connection
<blockquote>
  <p><strong>Possible Duplicate:</strong><br />
  <a href="http://stackoverflow.com/questions/189430/javascript-how-to-detect-that-the-internet-connection-is-offline">JavaScript: How to detect that the internet connection is offline?</a>  </p>
</blockquote>

<p>How to check the internet is connected or not in javascript.</p>
