In order to detect the operating system on the client machine, the navigator.appVersion string (property) should be used.