Determine what Browser being used, using javascript
html, javascript
Solution
To answer your question, no there is no problem or bug. Chrome represents itself as Mozilla. See this for the exact User Agent strings which Chrome gives.
http://www.useragentstring.com/pages/useragentstring.php?name=Chrome
Here are some examples:
Chrome 20.0.1092.0
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.6 (KHTML, like Gecko) Chrome/20.0.1092.0 Safari/536.6
Chrome 20.0.1090.0
Mozilla/5.0 (Windows NT 6.2) AppleWebKit/536.6 (KHTML, like Gecko) Chrome/20.0.1090.0 Safari/536.6
Problem
I have a problem in Determining Browsers. I've tried using `navigator` and well, it did not help. I used `alert(navigator.appName);` to determine the browser and I'm currently using `Google Chrome`, when the pop up appears it displayed `Mozilla`, but in `Mozilla` it works fine and with `Mozilla` It self. is there a problem with the code? or it's some bug?