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