Browser detection

Boleslaw Mynarski (bmynarsk@pathcom.com)
Mon, 16 Dec 1996 20:58:15 -0500


Message-ID: <01BBEB93.E0027D40@ts16l3.pathcom.com>
From: Boleslaw Mynarski <bmynarsk@pathcom.com>
To: "Web Edit Pro (E-mail)" <webedit-list@thegroup.net>
Cc: "HTML General (E-mail)" <www-html@w3.org>
Subject: Browser detection
Date: Mon, 16 Dec 1996 20:58:15 -0500

Hi everyone,

I have picked up this script from MS Site Builder that is supposed to =
enable me to detect which browser a user is using and thus being able to =
determine which page to load.  Here is the script:

<SCRIPT LANGUAGE=3D"JavaScript">
<!--var name =3D navigator.appName; function is Browser>
<if (name =3D=3D "Microsoft Internet Explorer">
<location.href=3D"EXPLORER.htm">; or any location
else
<location.href=3D"NAVIGATOR.htm">; or any location
is Browser ()
// -->
</SCRIPT>
<BODY>
Content for those not using either browser.
</BODY>

The problem is that whenever I try to run the script, either IE or =
Netscape chokes on <if(name=3D=3D.. line giving me a syntax error.  I've =
tried removing '<' and so one but with no success.  Has actually anybody =
got this script to work?

I would appreciate your comments and suggestions....

>Regards,
>
>Bolek

>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>URL: http://www.pathcom.com/~bmynarsk
>E-Mail: bmynarsk@pathcom.com or bolek@innovator.net
>Toronto,  ON Canada
>Tel: 416-245-8921
* >Need a hand with your web site development?  Let's get in touch!  You =
will get fast and reliable service.
=3D=3D>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D