Instantiating the Browser Capabilities Component

To create an instance of the Browser Capabilities object, use the Server object's CreateObject method. The syntax for the CreateObject method is as follows:

Set objMyObject = Server.CreateObject(strProgId)

where:

  • The objMyObject parameter represents the name of a Browser Capabilities object.

  • The strProgId parameter represents the programmatic ID (ProgID) for the Browser Capabilities component:

MSWC.BrowserType

Get ASP in a Nutshell, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.