Specifically, I am trying to detect Windows XP users as they are not compatible with my software.
Is there a way to detect with at least 70% or higher accuracy?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try
navigator.appVersionhttp://msdn.microsoft.com/en-us/library/ms533080(v=VS.85).aspx
https://developer.mozilla.org/en/DOM/window.navigator.appVersion
I have Windows 7 here and the
navigator.appVersionreturns a string containing “NT 6.1” in these browsers: Chrome, Opera, Safari, IE9 beta.Only Firefox does not return that info in that string 🙁
btw, WinXP is “NT 5.1”, Vista is “NT 6.0” …
Update
navigator.userAgentreturns the “NT version” string in all 5 browsers. That means thatuserAgentis the property that is able to tell the Windows version.