I need some function returning a boolean value to check if the browser is Chrome.
How do I create such functionality?
all answers are wrong. "Opera" and "Chrome" are same in all cases.
(edited part)
here is the right answer
if (window.chrome && window.chrome.webstore) { // this is Chrome }