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?
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: