[thelist] jsp/java browser detect

Paul Bennett paul at web-business-pack.com
Mon Oct 18 14:48:02 CDT 2004


browser sniffing is bound to cause future headache - it's a maintenance 
nightmare and general Bad Practice (tm).
Why not just use things like the simple CSS '@import' rule?

http://bennettpr.blogspot.com/2004/10/is-browser-sniffing-dead.html


Kasimir K wrote:

>
>>         } else if(user.indexOf("gecko/2004") != -1) {
>>             moz  = true;
>
>
> How about Gecko in 2005? You could take the four characters after 
> "gecko/" and check it's a number > 2003.
>
> .k
>



More information about the thelist mailing list