jQuery Browser and Mobile Device Detector Plugin - jQuery Browser

jQuery Browser and Mobile Device Detector Plugin - jQuery Browser
File Size: 49.1 KB
Views Total:
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

jQuery Browser is a simple jQuery plugin for checking the version of user's browser based on useragent. It also supports for detecting iPhone, iPad and Android devices.

See also:

How to use it:

1. Include jQuery library and jQuery Browser on your web page

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="jquery.browser.js"></script>

2. Usage

// Detect specifically Windows, Mac, Linux, iPad, iPhone, iPod, Android, Kindle, BlackBerry, Chrome OS, and Windows Phone useragents
$.browser.android
$.browser.blackberry
$.browser.cros
$.browser.ipad
$.browser.iphone
$.browser.ipod
$.browser.kindle
$.browser.linux
$.browser.mac
$.browser.msedge
$.browser.playbook
$.browser.silk
$.browser.win
$.browser["windows phone"]

// Detect for generic classifications such as desktop or mobile
$.browser.desktop
$.browser.mobile

// Detect the browser's major version
$.browser.versionNumber

Change log:

2015-11-24

  • Support Microsoft Edge

This awesome jQuery plugin is developed by gabceb. For more Advanced Usages, please check the demo page or visit the official website.