Anyway to find which version of Mac OS?

wxdqz

New Member
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);
 
Back
Top