Header Ads

If You Dont Have Internet Connection Then Show Alert Message in Website Using JavaScript
kindly paste these code into <head> tag in your page


<script type="text/javascript">
   
    var ifConnected = window.navigator.onLine;
if (ifConnected) {
alert('Connection available');
} else {
  alert('Internet Connection is not available');
}
   
    </script>

8 comments: