jQuery Distinguish Chrome – Safari

To  detect Google Chrome by using the jQuery use below code:

// Is this a version of Chrome?
if($.browser.chrome){
var isChrome = (navigator.userAgent.toLowerCase().indexOf(‘chrome’) >= 0);
if(is_chrome == true){
//do chrome stuff
}
}

Share this nice post:

One thought on “jQuery Distinguish Chrome – Safari

  1. This blog is wonderful. There is usually all the right details in the ideas of my fingers. Thanks and maintain up the beneficial work!

Leave a Reply

Your email address will not be published. Required fields are marked *