Codesnipp.it Social Code Sharing

Claudio Ortolina

How to detect an iOS device's network status

by Claudio Ortolina on Nov 29, 2010

//works natively without any dependencies if (navigator.onLine) { //do your online stuff } else { //do your offline stuff }

Can't see the comments? Please login first :)