Mobile app version of vmapp.org
Login or Join
Bryan171

: Can anyone tell me why does Chrome tell it is Mozilla and Safari also? http://www.w3schools.com/js/tryit.asp?filename=try_nav_all I get Browser CodeName: Mozilla Browser Name: Netscape

@Bryan171

Posted in: #BrowserDetecting #GoogleChrome

www.w3schools.com/js/tryit.asp?filename=try_nav_all
I get


Browser CodeName: Mozilla

Browser Name: Netscape

Browser Version: 5.0 (Windows NT 5.1) AppleWebKit/535.1 (KHTML, like
Gecko) Chrome/14.0.835.186 Safari/535.1

Cookies Enabled: true

Platform: Win32

User-agent header: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.1
(KHTML, like Gecko) Chrome/14.0.835.186 Safari/535.1

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Bryan171

2 Comments

Sorted by latest first Latest Oldest Best

 

@Samaraweera270

Almost every browser says it's Mozilla, meaning it is (more or less) compatible with Mozilla rendering engine.

10% popularity Vote Up Vote Down


 

@Kristi941

Basically it started because some websites used to sniff the user-agent to tell what browser someone was using so they could block browsers that they thought wouldn't work with their websites. Specifically, websites were blocking Internet Explorer because it didn't offer as many features as Netscape Navigator. Instead of simply building a website that works across browsers, webmasters chose to just block IE completely. To get around that, Internet Explorer started to put Mozilla in their user-agent (with "compatible" in parenthesis).

Another reason is some browsers share the same rendering engine. For example, both Safari and Chrome use the webkit rendering engine. Firefox and SeaMonkey both use gecko. As a result they will both have pieces of their user-agent which will match and/or mention the other browser.

This article has a good summary of user-agent history in much more detail.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme