How to find out what Operating Systems Platform your website visitors are using
Ever wanted to know how many of your visitors actually use Mac or Windows? Are you curious as to what percentage have actually ventured on to Linux? Then you will be interested in the code discussed on this page.
var operatingSystem = navigator.platform;
If your user's operating system is windows vista for instance, the above code will return Win32. Here a more advanced example of how to load the current Operating System Platform into a span tag:
<title>How to find out what Operating Systems your website visitors are using</title>
var operatingSystem = document.getElementById("operatingSystem");
operatingSystem.innerHTML = navigator.platform;