getting this info on the client is a bit more simplicit and resource friendly task also.
eg:
<SCRIPT LANGUAGE = "JavaScript">
var version = 0;
if (navigator.userAgent.indexOf("Mozilla/3.0" != -1)version = 3;
else if
(navigator.userAgent.indexOf("MSIE" != -1) version = 1;
else if (navigator.userAgent.indexOf("Mozilla/2.0" != -1) version = 2;
else version = 0;
function browser_type()
{
if (version == 3) return "Netscape Version 3.0";
if (version == 2) return "Netscape Version 2.x";
if (version == 1) return "Microsoft Internet Explorer 3.0";
if (version == 0) return "an off-the-wall JavaScript browser";
}
</SCRIPT>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.