Click to See Complete Forum and Search --> : Anyway to find which version of Mac OS?


NormB
02-03-2003, 07:27 PM
I've got the script to check the operating system being used, but I haven't seen a way of getting the OS version for Mac, v8, 9, or X.

var userAgent = navigator.userAgent.toLowerCase();
var mac = userAgent.indexOf("mac") != -1;
var macppc = mac && (userAgent.indexOf("ppc") != -1 || userAgent.indexOf("powerpc") != -1);

NormB
02-03-2003, 08:15 PM
Thanks, Dave.

But I need to know the specific version number of the Mac OS. I specifically need to test if they have Mac OS 8.6 installed.

Thanks.

NormB
02-04-2003, 12:17 PM
I received the following. No mention of Mac OS version.

navigator.appCodeName = 'Mozilla'
navigator.appMinorVersion = '0'
navigator.appName = 'Microsoft Internet Explorer'
navigator.appVersion = '4.0 (compatible; MSIE 5.0; Macintosh; I; PPC)'
navigator.browserLanguage = 'en'
navigator.cookieEnabled = true
navigator.cpuClass = 'PPC'
navigator.mimeTypes = [object MimeTypeArray]
navigator.onLine = true
navigator.platform = 'MacPPC'
navigator.plugins = [object PluginArray]
navigator.systemLanguage = 'en'
navigator.userAgent = 'Mozilla/4.0 (compatible; MSIE 5.13; Mac_PowerPC)'
navigator.userLanguage = 'en'
navigator.userProfile = [object UserProfile]