is it possible to check in html that internet is connected? : <p>I am creating a webview. My apps displaying my folder link when internet connection is off.</p>

<p>Is it possible to check in html that internet is connected/not connected and displayed manual messages ? i want to hidden error in mobile browser like as.</p>

<pre><code>The webpage at http://www.example.com could not be loaded as :
net:: ERR_NAME_NOT_RESOLVED
</code></pre>
