How to find an operating system in the client machine using JavaScript?
Answers (1)
Add Answerlet system= "";
if (navigator.appVersion.indexOf("Win") != -1) system= //For Windows
"Windows OS";
if (navigator.appVersion.indexOf("Mac") != -1) system= //For MacOS
"MacOS";
if (navigator.appVersion.indexOf("X11") != -1) system= // For UNIX
"UNIX OS";
if (navigator.appVersion.indexOf("Linux") != -1) system= // For Linux
"Linux OS";
This is how you can find an operating system of the client machine