<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>
Related Scripts with Example Source Code in same category :