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