Hello everyone, welcome to the tutorial on jQuery. Today I am going to share a very simple but effective scripts for how to detect client using jQuery. As a programmer sometimes we need to detect client OS and their browser information. So, if we can get client information then we can easily execute specific function dedicate for that client. Like if client comes from a desktop web browser then we can show full website , on the other hand when client comes from a mobile device then we can redirect them to a mobile compatible website. It's very efficient and user friendly also.

Detect your client with jquery script

I've hosted full scripts in my server for your download. You will find them in below of the tutorial. Demo also available for you. You can detect any kind of client like mozilla firefox, IE, safari, opera, chrome . In bonus , this code can also detect operating system that your client used.

detect client with jquery plugins

When you run this code you can see something like this. Have a look -

detect your client with jquery

Download latest Jquery code library from:

http://code.jquery.com/jquery-1.7.2.min.js

Download Browser Detection plugins code from:

http://mymodules.coolajax.net/js/jquery.client.js

Demo Available:

http://demos.coolajax.net/detectclient

Download Full code from:

http://demos.coolajax.net/detectclient/code.zip

I think this code will help a lot in your next project. Thanks a lot for reading my tutorial.

Was this information useful? What other tips would you like to read about in the future?  Share your comments, feedback and experiences with us by commenting below!



Like our site? Be a member of Coolajax fan page to get daily posts updates!

recommended-tutorial You May Like This Posts!

» Detect your client with jquery script

» 4 jQuery snippets you can use to manipulate select input

» Jquery Tutorial: Hide An Element

» 5 most wanted jQuery snippet for web developers

» How to selection operation caching in jQuery?

  tuts_view Total Read: 2665
blog comments powered by Disqus

Topics

Coolajax Fans

coolajax fan page on Facebook