Forums > Javascript

Grab System OS Value

February 18, 2009 | 7:10 pm

I’m trying to grab the OS value (ie: Windows/Mac) that the patch is currently running on via javascript but i’m having trouble using the ‘OS’ property as stated under ‘The Max Object’ help section.

Can anyone point me into the right direction? Or have a working example of how to grab the OS value?

Thanks


February 18, 2009 | 8:08 pm

Quote: Visibleman wrote on Wed, 18 February 2009 20:10
—————————————————-
> I’m trying to grab the OS value (ie: Windows/Mac) that the patch is currently running on via javascript but i’m having trouble using the ‘OS’ property as stated under ‘The Max Object’ help section.
>
> Can anyone point me into the right direction? Or have a working example of how to grab the OS value?

Try this:

if (max.os == "macintosh")
// this is mac.
else
// this is windows

ej


February 18, 2009 | 11:03 pm

Thanks, worked a charm!


Viewing 3 posts - 1 through 3 (of 3 total)