[thelist] javascript syntax

Chris W. Parker cparker at swatgear.com
Fri May 10 14:41:01 CDT 2002

> Im trying to redirect Mac users and I just cannot get
> my bit of java working -

it's not java, it's javascript. i know you stated this in your subject,
but java isn't short for javascript. so there! ;)

> if (navigator.platform=='mac'){window.location='NS/index.htm'};

i'm no js wizard but isn't it case sensitive? so 'mac' is different
'Mac'? so if the server logs say 'Mac_PowerPC' then you should be
checking for 'Mac' right?

i'm just throwing idea(s) out.


More information about the thelist mailing list