I am trying to make a website for batch files. Since batch files only work on Windows computers I want to find a code that recognizes the difference from Windows and other devices. Once I have this code I tell it to display a check mark and the download link on windows and on other platforms (iPhones, Android phones, ChromeBooks, etc.) It will say your device is not compatible with this file. I haven't found anything on the web even similar to this.
Asked
Active
Viewed 58 times
0
-
1Check out this other question: http://stackoverflow.com/questions/9514179/how-to-find-the-operating-system-version-using-javascript – Ashitaka Jan 19 '14 at 18:29
-
1On another note, it'll be better to detect this Server Side. – MackieeE Jan 19 '14 at 18:32
1 Answers
1
This javascript checks if the user uses windows.
if(navigator.appVersion.indexOf("Win") != -1){document.write('using windows');};

Goudgeld1
- 342
- 2
- 12