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 271 views
271 views asked Mar 20, 2023 by avibootz
1 answer 227 views
227 views asked Apr 12, 2022 by avibootz
1 answer 233 views
1 answer 310 views
1 answer 218 views
1 answer 267 views
...