What JavaScript code do you use to detect different browsers?
I’m not talking about object detection, I know about that, I’m talking about general detection so you can tell users of a certain browser (IE 5.2 on Mac or such) to take a hike; or so you can log browser usage.
I’m mostly looking for some comprehensive parsing of the UserAgent string.