In iOS on the web, I would like to detect from Javascript whether the device is connected via 3G or Wifi?
In Android, this information is available via navigator.connection.type
. Is this information available on iOS (iPad/iPhone)?
See How do you detect 3G vs. Wifi connection on mobile safari?