Possible Duplicate:
Using javascript to detect browser type
Detect version of browser
How to detect which type and version of browser does the User is using ?
I tried the following code, but it is not working.
var browserType = navigator.appName;
Alert(browserType);