Is there a way to detect the type of network connection using javascript?
1 answer
This is the wrong approach to expose your web to javascript. Anyway, for your better understanding, please follow the link below.
How to check the connection type (WiFi / LAN / WWAN) using HTML5 / JavaScript?
And there is one that can help but only supports mozilla and for information you can visit the link below.
https://developer.mozilla.org/en-US/docs/Web/API/Network_Information_API
+1
source to share