showing results for - "how to check a user is using wifi or cellular data in php"
Mateo
30 May 2017
1<html>
2    <head>
3        <script type="text/javascript">
4            function checkWIFI() {
5                var output = document.getElementById('connectionCheck');
6                var html = "Checking...<br/>Connection: ";
7                if (navigator.connection) {
8                    var type = navigator.connection.type;
9                    html += type
10                } else {
11                    html += "Connection type not supported.";
12                }
13                output.innerHTML = html;
14            }
15        </script>
16    </head>
17    <body onload="checkWIFI();">
18        <div id="connectionCheck">
19        </div>
20    </body>
21</html>
22
similar questions