How to Check Whether User Online/Offline in Javascript

How to Check Whether User Online/Offline in Javascript

This is a very small and basic tutorial about usage of navigator api to check if user is online or offline.

  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •