I need some function returning a boolean value to check if the browser is Chrome.
How do I create such functionality?
even shorter: var is_chrome = /chrome/i.test( navigator.userAgent );
var is_chrome = /chrome/i.test( navigator.userAgent );