Jquery User Agent
User Agent script, allows to detect the browser and operating system details easily.
Features
Simple script that grabs the user agent.
Provides the name of the browser and operating system. It also gives the details of the browser version and OS platform.
Responsive and easy to integrate.
Preview
Jquery User Agent
Browser
Version
Platform
Operating System
Downloads
<!--Scripts by hscripts.com--> <!--More scripts @ www.hscripts.com--> <html> <head><title>Jquery User Agent</title> </head> <script>var name='';var version='';var platform='';function get_browsername(){ if($.browser.chrome){name='Chrome'; return name;}if ($.browser.mozilla){name='Mozilla';return name;} if( $.browser.safari ){name='Safari'; return name;}if( $.browser.opera){ name='Opera';return name;}if ($.browser.msie && $.browser.version){ name='IE';return name;} }function get_browserversion(){ version=$.browser.version;return version; }function get_platform(){ platform=navigator.platform;return platform;} function get_os(){if (navigator.userAgent.indexOf("Win") != -1){ $("#os").html("Windows");}else if (navigator.userAgent.indexOf("Mac") != -1){ $("#os").html("MacOS");}else if (navigator.userAgent.indexOf("Ubuntu") != -1){ $("#os").html("Ubuntu");}else{ if (navigator.appVersion.indexOf("X11")!=-1) {$("#os").html("Linux")}if (navigator.appVersion.indexOf("Linux")!=-1) {$("#os").html("Linux")}}}function browserCheck(){$("#browser").html(get_browsername());$("#version").html(get_browserversion()); $("#platform").html(get_platform());get_os()} $(document).ready(function(){ var sds = document.getElementById("dum");if(sds == null){alert("You are using a free package.\n You are not allowed to remove the tag.\n");}var sdss = document.getElementById("dumdiv");if(sdss == null){alert("You are using a free package.\n You are not allowed to remove the tag.\n"); document.getElementById("content").style.visibility="hidden";} }); </script> <style> .frms { margin:0 auto;padding:10px;color:#333; font-size:.9em;line-height:1.2em;width:50%; } body {background: #fff none repeat scroll 0 0;color: #666;font: 0.81em/150% Tahoma,Geneva,sans-serif; word-wrap: break-word; } .table {margin:20px 1px; padding:0px;border:0px;border-spacing: 0;overflow: auto;width:50%;border-spacing: 0; } .table td {font: 0.81em/150% Tahoma,Geneva,sans-serif; color:#666;text-shadow:#fff 1px 1px 0px; vertical-align:middle;padding:2px 2px 2px 12px; border-spacing: 0;border-collapse:collapse;border:1px solid #e8e8e8; } @media screen and (max-width:650px) { .table{width:auto !important;}.frms{width:auto !important;} } </style><body onload='browserCheck()'><div class='frms'> <center><b>Jquery User Agent </b></center> <div align='center' id='content'><table class='table' align='center'><tr> <td>Browser</td><td id='browser'></td></tr> <tr> <td>Version</td><td id='version'></td></tr> <tr> <td>Platform</td><td id='platform'></td></tr> <tr> <td>Operating System</td><td id='os'></td> </tr> </table> </div><div align='center' style="font-size: 10px;color: #dadada;" id="dumdiv"><a href="https://www.hscripts.com" id="dum" style="font-size: 10px;color: #dadada;text-decoration:none;color: #dadada;">©h</a> </div></div> </body> </html>
<!--Scripts by hscripts.com--> <!--More scripts @ www.hscripts.com--> <script> var name='';var version='';var platform='';var os='';function get_browsername(){ if($.browser.chrome){name='Chrome';return name;}if ($.browser.mozilla){name='Mozilla';return name;}if( $.browser.safari ){name='Safari';return name; }if( $.browser.opera){ name='Opera';return name;} if ($.browser.msie && $.browser.version){ name='IE';return name;} }function get_browserversion() {version=$.browser.version;return version;}function get_platform() {platform=navigator.platform;return platform;}function get_os() {if(navigator.userAgent.indexOf("Win")!= -1){os="Windows";return os; }else if (navigator.userAgent.indexOf("Mac")!= -1){os="MacOS";return os; }else if (navigator.userAgent.indexOf("Ubuntu") != -1){os="Ubuntu";return os; }else{if (navigator.appVersion.indexOf("X11")!=-1) { os="Linux";return os;}if (navigator.appVersion.indexOf("Linux")!=-1) { os="Linux";return os;} } </script>
Release Date - 10-06-2015 Get free version without ©copyright link for just $10/ -
For customization of this script or any script development, mail to support@hscripts.com
Usage
Copy and paste the above code into your HTML page.
User agent functionality is based on the browser conditions.
The function get_browsername() returns the name of the browser, get_browserversion() returns the browser version, get_platform() returns the platform of the browser and get_os() returns the name of the operating system.
License
This Jquery code is given under GPL License
i.e. Free use for those who use the codes as it is.
Free, if your modification does not remove our copyright information and links.
Detailed License information can be found here .
You can purchase the script if your requirements does not meet our GPL License terms.
Related Scripts