How to detect if a user is online/offline with JavaScript
If you want to know if the user has a working network connection you can check the the onLine property found on the navigator object.
window.navigator.onLine; // true | false
Whilst this is useful to check at any point in time whether or not the brow...
jdcentral.hashnode.dev2 min read