How to detect the operating system of the user in JavaScript

1 Answer

0 votes
console.log('OS', navigator.platform);
console.log('OS', navigator.oscpu);

// Windows 10 = Windows NT 10.0



/*
run:

"OS", "Win32"
"OS", "Windows NT 10.0; Win64; x64"

*/

 



answered Nov 23, 2022 by avibootz

Related questions

2 answers 156 views
156 views asked Mar 20, 2023 by avibootz
1 answer 154 views
154 views asked Apr 12, 2022 by avibootz
1 answer 135 views
1 answer 210 views
1 answer 128 views
1 answer 188 views
...