Monday, September 08, 2008

Detecting Google Chrome In Javascript

Thanks to javascript.internet.com, here is a quick post on how to detect the new Google Chrome browser from within your Javascript code.


var is_chrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1;

By the way, if you are looking for some great javascript tips, take a look at javascript.internet.com as it is an excellent resource.

No comments:

Post a Comment

Please leave a comment...