Is there a way to detect if the operating system is OS X Lion or not in Javascript?
Cheers!
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.
The user agent of Safari (and also Firefox) in Lion is something like
There is “Mac OS X 10_7_1” in it – this indicates Lion (= Mac OS 10.7).
See here: http://www.whatsmyuseragent.com/
You can read the user agent string using “navigator.userAgent”