[thelist] javascript syntax

dn at dittodesign.co.uk dn at dittodesign.co.uk
Fri May 10 14:52:01 CDT 2002

Cheers Chris,

My 'javascript' problem was sorted yesterday after
sweating over it for *#@3" hours 9-)

finished up with this -

if (navigator.userAgent.indexOf( "Mac" )
!= -1){window.location="NS/index.htm";}

I'm no javascripter either so I wasn't aware that it
wouldn't work if it wasn't in the right case upper or
lower Doh !

Did find a nice little javascript proggy with a GUI for
my efforts trawling the web. 8-)


----- Original Message -----
From: "Chris W. Parker" <cparker at swatgear.com>
To: <thelist at lists.evolt.org>
Sent: Friday, May 10, 2002 8:40 PM
Subject: RE: [thelist] javascript syntax

> > 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.
> chris.
> --
> For unsubscribe and other options, including
> the Tip Harvester and archive of thelist go to:
> http://lists.evolt.org Workers of the Web, evolt !

More information about the thelist mailing list