[thelist] Tip: Javascript browser detection in IE5 Mac

Mark Howells mark at mountain.ch
Thu Feb 14 10:46:09 CST 2002

<tip type="Javascript browser detection in IE5 / Mac"
author="mark at mountain.ch">

When checking for browser version with Javascript, be careful when using
navigator.appVersion. IE 5.1.3 identifies itself as follows.

navigator.appVersion = "4.0 (compatible; MSIE 5.0; Macintosh; I; PPC)"
navigator.userAgent  = "Mozilla/4.0 (compatible; MSIE 5.12; Mac_PowerPC)"

Note the difference between the MSIE version numbers.


Mark Howells

More information about the thelist mailing list