conditional or js to detect whether user is on windows XP?
Posted
by Haroldo
on Stack Overflow
See other posts from Stack Overflow
or by Haroldo
Published on 2010-06-18T07:43:56Z
Indexed on
2010/06/18
7:53 UTC
Read the original article
Hit count: 109
Because windows xp renders certain fonts so poorly, i would like to detect whether the user is using that OS and add a class to the body accordingly.
I'm looking ideally for an html conditional statement or php $_SERVER var to do this
However failing that a piece of javscript along the lines of below would do
if(users_os === 'xp'){
$('body').addClass('xp');
}
What avenues should i be persuing?!!!
thanks!
© Stack Overflow or respective owner