Just a quick question -- the outsidemost if/elseif sequence of the
function "sniff()" doesn't seem to have an "else" (it ends with "elseif"
and then does another "if", before its "return"). Did you mean to
include an "else" in that?
Erik
On Monday, February 18, 2002, at 04:37 PM, Robert
Hello,
Below is code I hacked up to read a user agent string (i.e. Mozilla/5.0 (Windows; U;
Windows NT 5.0; en-US; rv:0.9.8) Gecko/20020204
) and return several items including:
- the browser name,
- the browser version,
- the browser's major version number, and
- user definable compatibility li
2 matches
Mail list logo