Friday, August 22, 2014

Get Browser details using jQuery

Get Browser details using jQuery


Live DemoDownload Script

Need library file to perform this action.Please copy and Paste below library file.
<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.0.js"></script>
<script type="text/javascript" src="http://code.jquery.com/jquery-migrate-1.2.1.js"></script>

Jquery Function For IE Browser

 <script type="text/javascript">
        $(document).ready(function () {
            $("#browserdetails").click(function () {
                if ($.browser.msie) {
                    var browsername = "Microsoft Internet Explorer";
                }
                var bversion = $.browser.version;
                alert("Browser: " + browsername + "  Version: " + bversion);
                return false;
            });
        });
    </script>

Please share your comments and feedback.Thanks.Please subscribe my updates via email.

No comments:

Post a Comment