Natural selection browser switch

Mat Colton mat.colton at web-xs.de
Thu Mar 13 00:27:29 UTC 2003


Hi,
today I read you are using a http header browser switch to determine which CSS 
to deliver. This is very insecure and a HACK! Please use the "natural 
selection" via CSS and JS DOM. First of all it is not a hack compared to a 
http browser switch and second it works. :)
Check out http://w3development.de/css/hide_css_from_browsers/summary/ to see 
how to set which CSS goes to which browser. 
In JS, use 
if (document.getelementbyid) 
or
if (document.layers) 
or
if (document.all) 
or whatever to set which browser gets the JS script.
-- 
Cheers,
Mat





More information about the kde-www mailing list