online/offline Event DEMO

navigator.onLine =

change online/offline will show notification