I have a page which runs locally on my device, and I would like to use AJAX or normal JavaScript to check if the device is connected to the Internet and if a pa
There is basic support for
navigator.online //Events window.onOnline window.onOffline
on desktop browsers and support on Android. This might not completely answer your question, but I thought its worth sharing anyway :)