+ 6

How to make a code in a web that detects the WiFi status?

29th Sep 2018, 8:29 AM
Alex Schneider
Alex Schneider - avatar
3 Respuestas
29th Sep 2018, 4:56 PM
Biel Blue
Biel Blue - avatar
+ 3
alert(navigator.connection) // [object NetworkInformation] // dump properties var obj=navigator.connection; for (var i in obj) document.write("<b>" + i + ":</b> " + obj[i] + "<br />") Reference: https://developer.mozilla.org/en-US/docs/Web/API/Network_Information_API#Detect_connection_changes Implementation note: Connection type is "unknown" in-app, "wifi" in the browser.
29th Sep 2018, 4:48 PM
Kirk Schafer
Kirk Schafer - avatar
+ 2
you can us navigator in js
30th Sep 2018, 9:33 AM
Rishabh Singh
Rishabh Singh - avatar