detecting os version using javascript

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
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
About | Sitemap | Contact
We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.