About the "navigator.AppCodeName" script and why it returns "Mozilla" in IE?

Basse

Senior member
Oct 11, 1999
525
0
71
If you enter "javascript:alert(navigator.appCodeName)" or "javascript:alert(navigator.userAgent)" in your IE adress field it reurns "Mozilla" Why is that?

If I use the other variables such as "navigator.appName", "navigator.appVersion" or "navigator.platform" it returns the correct values.

Is this because MS just ripped the original code from Mozilla back then and didn't bother to change it or what?

I have searched the web and I can't find any reason to this, just the fact that it happens...

Any Javagurus out there?
 

yruffostsif

Senior member
Sep 8, 2003
233
0
0
Probably because the code base is still Mozilla.

I like the fact if you set your hompage to:

about:mozilla

you get a nice blank blue screen.
 

MrChad

Lifer
Aug 22, 2001
13,507
3
81
Nope. The best explanation I've read of the User Agent mystery is here. There was a thread about this a while back, but I couldn't find it.