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 158 views
158 views asked Mar 20, 2023 by avibootz
1 answer 158 views
158 views asked Apr 12, 2022 by avibootz
1 answer 137 views
1 answer 214 views
1 answer 132 views
1 answer 191 views
...