Browser Capabilities

Overview

Not all browsers have the same capabilities. To make the task of accounting for differences easier, ASP provides the Browser Capabilities component. This component provides your scripts with a description of the capabilities of the client browser by use of the BrowserType object.

Code Tour

First, an instance of the BrowserType object must be created and assigned to an object variable, bc. Then, each property is requested, in turn, from the object by using the object.property syntax. Run the example, and see what your browser can do.

If you are using Internet Explorer version 5.0 or later, the list of capabilities you will see include those capabilities that are determined using the new client capabilities cookies, described in Client Capabilities.

Location

The VBScript and JScript versions of this script are available in the IIS samples directory, at ...\asp\components\BrowserCap_VBScript.asp and ...\asp\components\BrowserCap_JScript.asp.