[thelist] javascript syntax
.jeff
thelist at lists.evolt.org
Thu May 9 15:05:28 2002
darren,
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: dn@dittodesign.co.uk
>
> > a regular expression search on the navigator.platform.
>
> er ?
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
don't sweat it. a regular expression isn't even necessary. just test for
the substring "mac" within the platform property using the indexOf() method.
if(navigator.platform.toLowerCase().indexOf('mac') == -1)
// do something if we find the
// substring "mac" in the platform
// property
good luck,
.jeff
http://evolt.org/
jeff@members.evolt.org
http://members.evolt.org/jeff/