Grow your CSS skills. Land your dream job.

navigator.appCodeName

  • # May 5, 2009 at 7:20 am

    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

    # May 5, 2009 at 9:23 pm

    That’s super weird but yes, you are right.

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

    Code:
    javascript:alert(navigator.appCodeName);
    # May 5, 2009 at 11:38 pm
    "chriscoyier" wrote:
    That’s super weird but yes, you are right.

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

    Code:
    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 ;)

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".