OK, now we come to the real stuff. If we have to assume that it's a too long way for the prophet (the browser programers) to come to the mountain (the web specifications) we have to move the mountain instead...
Differencing between different browsers is more or less impossible if you do not have access to the
low level functions of the server that holds your web pages and if you don't use javascript. As the
most of you probably have your web pages managed by a remote site (like GeoCities, AOL, [endless list]),
the latter one is your only possibility. So if the visitors to your page use a browser with disabled
javascript or with no javascript functionalities at all - you will not be able to identify them at all inside your HTML
code. Nevertheless you should take care that even those visitors can see the contents of your page!
<script language="JavaScript"> <!-- if (navigator.appName.substring(0,8) != 'Netscape') document.write('You probably use Microsoft IExplorer\n') else document.write('You probably use Netscape or Opera>\n'); // --> </script>
Browser | version | navigator.appName | |
---|---|---|---|
Netscape | v3.01-v4.6 | "Netscape" | |
Opera | v3.50b9-v3.60 | "Netscape" | |
MS IExplorer | v4.0 | "Microsoft Internet Explorer" |
Browser | Version | navigator.userAgent | (1) | ||
---|---|---|---|---|---|
Netscape | v1.12, MacOS | "Mozilla/1.12(Macintosh; I; PPC)" | ? | ||
v3.01 | "Mozilla/3.01 (Win16; I)" | ||||
v4.01, OEM | "Mozilla/4.01 [de]C-DT (Win95; I)" | ? | |||
v4.04, OEM | "Mozilla/4.0 (compatible; MSIE 4.01; Windows 95; DT)" | ? | |||
v4.05, SunOS | "Mozilla/4.05 [en] (X11; I; SunOS 5.5.1 sun4u)" | ||||
v4.06, WinNT | "Mozilla/4.06 [en] (WinNT; I)" | ||||
v4.07, Linux | "Mozilla/4.07 [en] (X11; I; Linux 2.0.36 i586)" | ||||
v4.07, MacOS | "Mozilla/4.07 (Macintosh; I; PPC, Nav)" | ? | |||
v4.5 | "Mozilla/4.5 [en] (WinNT; I)" | ||||
v4.5, OEM | "Mozilla/4.5 [de]C-DT (Win98; I)" | ? | |||
v4.5, OEM | "Mozilla/4.5 [de]C-CCK-MCD QXW03201 (Win95; I)" | ? | |||
v4.6 | "Mozilla/4.6 [en] (WinNT; I)" | ||||
v4.79 modified | "Mozilla/4.79 [en]C-CCK-MCD {SillyDog} (Windows NT 5.0; U)" | ||||
v6 | "Mozilla/5.0 (Windows; U; WinNT4.0; de-DE; m18) Gecko/20001106 Netscape6/6.0" | ||||
Opera | v3.0 | "Mozilla/3.0 (compatible;Opera/3.0; Windows 95)" | ? | ||
v3.50 | "Mozilla/4.0 (compatible; Opera/3.0; 4.0) 3.50 [en]" | ||||
v3.50b9 | "Mozilla/3.0 (compatible; Opera/3.0; Windows NT 4.0) 3.50b9" | ||||
v3.51 | "Mozilla/4.0 (compatible; Opera/3.0; Windows NT 4.0) 3.51 [en]" | ||||
v3.60 | "Mozilla/4.0 (Windows NT 4.0;US) Opera 3.60 [en]" | ||||
v5.12 native | "Opera/5.12 (Windows 2000; U) [en]" | ||||
v5.12 as IE | "Mozilla/4.0 (compatible; MSIE 5.0; Windows 2000) Opera 5.12 [en]" | ||||
v5.12 as Mozilla 3 | "Mozilla/3.0 (Windows 2000; U) Opera 5.12 [en]" | ||||
v5.12 as Mozilla 5 | "Mozilla/5.0 (Windows 2000; U) Opera 5.12 [en]" | ||||
v5.12 as Netscape 4.76 | "Mozilla/4.76 (Windows 2000; U) Opera 5.12 [en]" | ||||
v6.02 native | "Opera/6.02 (Windows 2000; U) [en]" | ||||
v6.02 as IE 5.0 | "Mozilla/4.0 (compatible; MSIE 5.0; Windows 2000) Opera 6.02 [en]" | ||||
v6.02 as Mozilla 3 | "Mozilla/3.0 (Windows 2000; U) Opera 6.02 [en]" | ||||
v6.02 as Mozilla 4.78 | "Mozilla/4.78 (Windows 2000; U) Opera 6.02 [en]" | ||||
v6.02 as Mozilla 5 | "Mozilla/5.0 (Windows 2000; U) Opera 6.02 [en]" | ||||
IExplorer | v3.0 | "Mozilla/2.0 (compatible; MSIE 3.0; Windows 95)" | ? | ||
v3.0, AOL | "Mozilla/2.0 (compatible; MSIE 3.0; AOL 3.0; Windows 3.1)" | ? | |||
v3.02 | "Mozilla/2.0 (compatible; MSIE 3.02; Update a; Windows 95)" | ? | |||
v3.02, AOL | "Mozilla/2.0 (compatible; MSIE 3.02; Update a; AK; AOL 3.0; Windows 95)" | ? | |||
v4.01 | "Mozilla/4.0 (compatible; MSIE 4.01; Windows 98)" | ? | |||
v4.01 | "Mozilla/4.0 (compatible; MSIE 4.01; Windows NT)" | ||||
v4.01, OEM | "Mozilla/4.0 (compatible; MSIE 4.01; Windows 95; DT)" | ||||
v4.01, OEM | "Mozilla/4.0 (compatible; MSIE 4.01; Windows 95; Mannesmann Arcor)" | ||||
v5.0b | "Mozilla/4.0 (compatible; MSIE 5.0b2; Windows 98)" | ||||
v5.5 | "Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0; T312461)" | ||||
Others | "NetCruiser/V2.1.1" | ? | |||
"Scooter/1.0scooter@pa.dec.com" | ? | ||||
"TeleportPro/1.28" | ? | ||||
"Mozilla/3.0 WebTV/1.2 (compatible; MSIE 2.0)" | ? | ||||
"Mozilla/3.0(compatible;MuscatFerret/1.4.1;olly@muscat.co.uk)" | ? | ||||
"Lycos_Spider_(T-Rex)/3.0" | ? | ||||
This table is not - and will never be - complete. It only should give you a slight idea of the zoo out there. Most browser information has been extracted from the recent (Jan-Mar 1999) log file of a web page - so be aware that they all might still be around!!! |
navigator.userAgent.substring(25,30) = 'Opera'
navigator.userAgent.substring(25,30) = '.0;US'
<script language="JavaScript"> <!-- if (navigator.useragent == '') document.write('I might be wrong - but you probably use Microsoft IExplorer v3.02 or earlier\n') else { if (navigator.userAgent.substring(25,30) == 'Opera') document.write('You use Opera, probably in a version prior or equal to v3.51\n') else { if (navigator.userAgent.indexOf('Opera') != -1) document.write('You use Opera in a version greater than v3.51\n') else { if (navigator.appName.substring(0,9) == 'Microsoft') { var dummy = navigator.userAgent.substring(navigator.userAgent.indexOf('MSIE')+5,navigator.userAgent.length); document.write('You use Microsoft Internet Explorer v.'+dummy.substring(0,dummy.indexOf(";"))+'\n'); } else { if (navigator.appName.substring(0,8) == 'Netscape') { if (navigator.userAgent.substring(0,7) == 'Mozilla') document.write('You use Netscape Navigator v.'+navigator.userAgent.substring(8,11)+'\n') else document.write('What the hell! I do not know your browser!\n') } else document.write('What the hell! I do not know your browser!\n') } } } } // --> </script>
browsers.html | Some very nasty behaviours I discovered using different browsers... |
browsertest.html | Let this little page check the compatibility of your browser's javascript functions... |
incompatibilities.html | CSS style sheets give a nice touch to your web pages - if only the browsers would know what to do with them... |
index.html | The main page of this project. |
So much for this page! If you are missing something OR have some own experiences you would like to share, just send me a mail!