Answers for "how to check a user is using wifi or cellular data in php"

0

how to check a user is using wifi or cellular data in php

<html>
    <head>
        <script type="text/javascript">
            function checkWIFI() {
                var output = document.getElementById('connectionCheck');
                var html = "Checking...<br/>Connection: ";
                if (navigator.connection) {
                    var type = navigator.connection.type;
                    html += type
                } else {
                    html += "Connection type not supported.";
                }
                output.innerHTML = html;
            }
        </script>
    </head>
    <body onload="checkWIFI();">
        <div id="connectionCheck">
        </div>
    </body>
</html>
Posted by: Guest on August-12-2021

Code answers related to "how to check a user is using wifi or cellular data in php"

Code answers related to "Javascript"

Browse Popular Code Answers by Language