- From: Boleslaw Mynarski <bmynarsk@pathcom.com>
- Date: Mon, 16 Dec 1996 20:58:15 -0500
- To: "Web Edit Pro (E-mail)" <webedit-list@thegroup.net>
- Cc: "HTML General (E-mail)" <www-html@w3.org>
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="JavaScript"> <!--var name = navigator.appName; function is Browser> <if (name == "Microsoft Internet Explorer"> <location.href="EXPLORER.htm">; or any location else <location.href="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==.. 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 >==================================================================== >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. ==>===================================================================
Received on Monday, 16 December 1996 21:00:14 UTC