in reply to Short and Sweet Browser Detection

You really should AVOID even looking at user agent strings. It is possible to write cross browser html and javascript without checking for particular browsers. Failing to do this always makes the site more brittle and less maintainable.

Replies are listed 'Best First'.
Re: Short and Sweet Browser Detection
by hacker (Priest) on Jun 17, 2002 at 10:55 UTC
    The script wasn't meant to determine what to show to the user, based on HTTP_USER_AGENT. It was used to simply detect their UserAgent, and display what was detected to the user. All of my code is 100% cross-browser compatible and works with every browser without having to make per-browser tweaks.

    Your point is still valid though, for others who may use that code to branch to different HTML output formats per browser.