Javascript User Agent Detection

Thursday June 3rd, 1999

Eric Krock of Netscape wrote to me and asked that I make this request to mz's readers:

Apparently there are many people out there using User Agent detection scripts that not only fail to detect IE5 and Mozilla (what will be Communicator5), but fail to detect that scripts meant for IE4 and Nav4 would also work in the 5.0 browsers. Netscape has created a more up-to-date client sniffer, and is requesting that people mention it in the signature area of their email messages - sort of a grass-roots way of getting the message out that User Agent detection has to be updated. Here's the recommended message:

Is your JavaScript ready for Nav5 and IE5?
Get the latest JavaScript client sniffer at

I've enabled the link in the sig above solely so you can visit the page and see it for yourself...

#5 Re:Javascript User Agent Detection

by zontar

Thursday June 3rd, 1999 4:46 PM

You are replying to this message

Gag me.

I've been using (and telling other people to use) OBJECT detection instead of browser detection for the last couple of years. That solves 90% of the problem right there, avoids long strings of &&'ed statements and is backward- AND forward-compatible by definition. As a result, my JS and DHTML pages are ALREADY ready, and have been, since I wrote them...