treehouse : what would you like to learn today?
Web Design Web Development iOS Development

navigator.appCodeName

  • hey guys,
    i got one question
    why does IE return "mozilla" as an answer when the following is written in javascript
    alert(navigator.appCodeName);

    All major browsers also return mozilla .....let me know

    Thanks
    Ashish
  • That's super weird but yes, you are right.

    For all you at home, just type this into the URL bar:

    javascript:alert(navigator.appCodeName);
  • "chriscoyier" said:
    That's super weird but yes, you are right.

    For all you at home, just type this into the URL bar:

    javascript:alert(navigator.appCodeName);



    But is there no reason why all browsers have used the code name "mozilla' when their rival's name incidentally is the same ;)