Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to get user's browser information using JS

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 94
    Comment on it

    Hello Reader's if you need to keep details of user who visits your website. Then you must know about their web browser. By using Javascript you can easily get this information. Lets see how to get this informations:-

    <!DOCTYPE html>
    <html>
    <body>
    <button onclick="myFunction()">Try it</button>
    <script>
    function myFunction() {
        document.getElementById("demo").innerHTML =
        navigator.appVersion;
    }
    </script>
    </body>
    </html>
    

    Output:-

    5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: