Click to See Complete Forum and Search --> : how to get the clients os?


danibert
10-31-2003, 08:36 AM
Hi,

how can I find out, what operating system the visitors of my website use. I need the exact os-name, not only win32.

I want to do it with js. is there any way?

Regards
Danibert

Khalid Ali
10-31-2003, 08:56 AM
Originally posted by danibert
Hi,

I need the exact os-name, not only win32.
Regards
Danibert

When yoi are using JavaScript,you are limitied to whatevernavigator object may return....for instance
navigator.userAgent returns this
IE6 = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)

Moz1.4.1 = Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4.1) Gecko/20031008

and navigator.platform

IE6 = Win32

Moz1.4.1 = Win32

platform is the one for which browser was compiled.

Charles
10-31-2003, 12:53 PM
operatingSystem = prompt('What operating system are you using?', '');