title: Javascript to check internet connection
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://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>