Jeff Ryan,
You can use the following script to detect the Browser Version
<html>
<head>
<title>Detecting Browser</title>
</head>
<script language="JavaScript">
function right(e) {
if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2))
{
alert("Netscape Navigator "+navigator.appVersion);
return false;
}
else if (navigator.appName == 'Microsoft Internet Explorer' &&
(event.button == 2 || event.button == 3)) {
alert("Internet Explorer "+navigator.appVersion);
return false;
}
return true;
}
document.onmousedown=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;
// End -->
function test()
{
alert("You are using " + navigator.appName + " " +
navigator.appVersion)
}
</script>
<body onload="test()">
</body>
</html>
Hope this will work for you.
Regards
Jaspreet Singh
-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of JeffRyan
Sent: Monday, August 28, 2000 8:10 PM
To: [EMAIL PROTECTED]
Subject: Detecting Browser Version
Hi,
Is there a way to detect the browser version from the request object so that
you can generate the appropriate HTML in your JSP?
Thanks, Jeff Ryan
Experience is the best teacher; it always gives the test before the lesson.-
H.T. Leslie
Jeff Ryan
Hartford Financial Services
[EMAIL PROTECTED]
860.547.4237
===========================================================================
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