[thelist] javascript syntax

David at softv.net David at softv.net
Thu May 9 15:04:01 CDT 2002


Darren,

Use this, it will give you all instances of macs:

var strPlatform = new String( navigator.platform );
if( strPlatform.toLowerCase().indexOf( "mac" ) == -1 )
{
	// platform is anything but a mac....
}

Dave




More information about the thelist mailing list