How to detect chrome using jQuery

Before you read this post, I suggest you read my previous post about "Detect browsers using jQuery". jQuery provides a property to detect the browser. It works well for IE, mozilla, Safari and opera browser but it doesn't work for Google Chrome.

Well, if you have installed chrome on your machine and safari is not installed then you can use $.browser.safari to detect chrome. As both the browsers are fully based on webkit. webkit is one of the flag of $.browser property. It will be true for safari and chrome. But that's not a proper way to detect chrome.

Well, you need to alter the $.browser utility to support chrome. I found a good article about detecting chrome using jQuery. Visit here.

Feel free to contact me for any help related to jQuery. I will gladly help you.



Responsive Menu
Add more content here...