Mega Code Archive

 
Categories / JavaScript Reference / Javascript Properties
 

OnLine Example

<html> <body> <script language="JavaScript"> function function1() {    var m = navigator.onLine;    alert("The onLine value is: \n"+m);  }  </script> <input type="Button" value='Get the onLine value' onClick="function1();"> </body> </html>