I have two connection Lan and Wifi in my pc.Wifi is automatically connect when lan connection is lost and vice-versa and lan Is my first priority.How can i detect network change state(i.e lan connection to wifi) in javascript.I have already use navigator.onLine and offline.js but this is not work for me.
Asked
Active
Viewed 1,233 times
1
-
Relevant info: [How do I check connection type (WiFi/LAN/WWAN) using HTML5/JavaScript?](http://stackoverflow.com/questions/11701328/how-do-i-check-connection-type-wifi-lan-wwan-using-html5-javascript) – jfriend00 Sep 03 '16 at 18:36
-
And related to http://stackoverflow.com/questions/30252403/is-there-any-way-to-detect-network-connection-type-using-javascript – Tobias S Sep 03 '16 at 18:41
-
how can i know it's wifi or lan – Rajib Ghosh Sep 03 '16 at 18:47
-
@jfriend00 it's work for if two connection is lost but if one connection is available it's is not detect – Rajib Ghosh Sep 03 '16 at 18:51