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
0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.