By which mechanism in JavaScript can you detect the operating system on a client machine?

How to detect the operating system on a client machine?

You can do that with window.navigator.platform or window.navigator.userAgent

1 Like