Using navigator.onLine and online/offline events to check for connectivity.html5-demos.appspot.com2 pointstilt15 years ago