detecting os version using javascript
Created May 14, 2012
Firat Tiryaki You should use the navigator object to get info about the OS
below in red are the properties of navigator object and the near cells are the values on my machine.
use the properties as object.property for example navigator.appCodeName
appCodeName | Mozilla |
appName | Microsoft Internet Explorer |
appMinorVersion | ;SP1; |
cpuClass | x86 |
platform | Win32 |
plugins | |
opsProfile | |
userProfile | |
systemLanguage | en-us |
userLanguage | en-gb |
appVersion | 4.0 (compatible; MSIE 6.0; Windows NT 5.0) |
userAgent | Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) |
onLine | true |
cookieEnabled | true |
mimeTypes |