Check OS system?
Moderator: Paul Tuersley
Is there a way to check what operating system is used? I have found $.os, which kind of works, but it will give me a long name like "Microsoft Windows Vista Servicepack etc. I'm looking for something that can simply say if the os is Windows or MacOS. I guess I could split the string and check the first letters, but it feels like there would be a simple command. Anyone?
-
- Posts: 320
- Joined: June 26th, 2004, 10:01 am
- Location: Folsom, CA
- Contact:
Something like this should work:
var isWindows = $.os.indexOf("Windows") != -1;
Dan
var isWindows = $.os.indexOf("Windows") != -1;
Dan