0

How can I get the Operating System build number (Windows, Mac etc) from within a browser?

Can use Flash or Java if have to? or something else?

Adam Chetnik
  • 1,646
  • 5
  • 25
  • 35

3 Answers3

0

Here's a good site that will give you all you need to know, http://msdn.microsoft.com/en-us/library/ms537503(v=VS.85).aspx

javascript:alert(navigator.userAgent)
AntLaC
  • 1,067
  • 9
  • 20
0

As a quick answer you can get all this information from the headers of a page when it is loaded over http. You can echo out the headers easily in PHP (or something similar) and they will say I AM WINDOWS - RELEASE X - BROWSER-AGENT I.E9 etc... I think jquery can tell you what os and browser is being used easily as well.

psf
  • 140
  • 1
  • 2
  • 8
0

No, you can't get reliably get the operating system build number. Sites like Panopticlick will show you what values can be got (with some effort).

One exception to this is the built in phone browsers:

since there is a single release build for these and you can reliably detect the version number you can assume a build number.

You can guess the build numbers for other browsers based on the OS version number, but you can't definitely prove it.

Community
  • 1
  • 1
Colin Pickard
  • 43,301
  • 13
  • 91
  • 143
  • No even without a plug-in such as flash – Adam Chetnik Oct 16 '12 at 19:35
  • The reason I ask is that we want our users to visit a web page and it to tell them if they have Windows XP SP3 and .Net Framework 3.5 SP1 installed etc – Adam Chetnik Oct 16 '12 at 19:40
  • You can _sometimes_ detect .NET framework versions, see http://stackoverflow.com/questions/3179127/how-to-detect-net-framework-installed-in-a-web-page-pure-html-or-php – Colin Pickard Oct 16 '12 at 19:43
  • You can make guesses about the SP level too if your user is using an unmodified internet explorer - see http://www.zytrax.com/tech/web/msie-history.html – Colin Pickard Oct 16 '12 at 19:52