Why do you want to find out the browser type? It's usually not recommended to write JavaScript against a specific browser. What if a new one or a new version comes out tomorrow?
In general, it's better to do object checking instead. For example, if you want to use document.getElementById but you don't know whether the browser supports it (just an example, as most browsers *do* support it), you can do something like this:
Code:
if (document.getElementById)
{
alert('Is Supported');
}
else
{
alert('Is NOT Supported');
}
This is much better, because it helps you find out what a browser can do, not what version or make it is.
Cheers,
Imar