As an example, let's use the information returned by your
browser's navigator object:
First, we want to find out which browser is in use. The most
common browsers are Netscape Navigator and Microsoft Internet
Explorer. Thus we want a variable "sBrowser" that will contain
a short string identifying the browser. We can accomplish that
with the javaScript code: