An easy way to detect which browser is being used is by JavaScript. Here
are two functions for detecting IE vs. Netscape:
function is_ie()
{ if (browser == "Microsoft Internet Explorer") return true;
return false;
}
function is_ns4()
{ if(browser == "Netscape" && parseInt(navigator.appVersion) < 5 ) return
true;
return false;
}
The navigator object will provide you with all the information needed for
browser type and version.
If you would like to know more about using JavaScript for browser
detection check out http://www.jspinsider.com , I'll write a more detailed
code snippet and post it ASAP.
[EMAIL PROTECTED]
----- Original Message -----
From: "Brad Miley" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 14, 2000 9:17 AM
Subject: detecting browser type
> How do you detect what type of browser the client is using?
>
> ________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets