Feature-detect the browser, never sniff the user agent
The claim Deciding what your web application does based on which browser it thinks the visitor is using — reading the user-agent string and branching on it — is a technique that ha...
Read article