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.

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.

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

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!
Tags:
jquery browser client, browser detect, detect client, client detect plugins, client detect jquery, how to detect client, detect client with jquery, client plugins, browser info
Total Read: 2665 Topics