Every now and then you may want to detect for a certain browser, for whatever reason.
For example, on The F-Word the normal stylesheet caused problems with Netscape 4. In that case, I decided using Hitoplive, to detect for Netscape 4 and simply provide a different stylesheet, without problems.
There are many valid reasons why you would want to do a browser detect. One bad reason is to deny access to certain browsers. This is not something I'd recommend at all as it will annoy a lot of people.
But as long as you don't want to do that, lets look at how to do a browser detect!