4 Replies Latest reply on Sep 3, 2012 5:18 AM by -hans-

    check if online

    -hans- Level 4

      Hi,

       

      I'm not as close to network, networkprotocolls and co.

       

      question:

      Will this be a safe way to check if a user is 'online' (connected to the internet by wlan or lan or ...)

       

       

      var myConnection = new Socket();
      if(myConnection.open ("www.google.de:80")) {myConnection.close();}else{alert('Not connected.')}