online and offline
Here I test the online and offline events as well as the
navigator.onLine
property.