Periksa apakah browser online
online = navigator.onLine // boolean
Poised Pig
online = navigator.onLine // boolean