Which object of java script is used to know the name of web browser?
To retrieve the name and version of the web browser using
JavaScirpt, you want to make use of the "navigator" object.
For instance, the following code would cause an alert box to
popup on the users browser, alerting the user to the browser's
name.
alert ("You are using: "+navigator.name);
The alert would say something like "You are using: Internet
Explorer" or "You are using: FireFox"
The navigator object has other information available. You can
find whether of not the browser accepts cookies, it's version, and
it's codename. To learn more, see the related link.