July 2000
Intermediate to advanced
492 pages
14h 53m
English
PropertyName (Customizable) —
objBrowsType
.
strPropertyName
Determines the value of a given property of a BrowserType object. Note that these properties represent values from the BrowsCap.ini file and are read-only. "Customizable" means, as mentioned earlier, that you can add your own property names to the BrowsCap.ini file.
strPropertyName
The name of a standard or custom property in the
BrowsCap.ini file. This string value cannot
contain spaces. If you attempt to retrieve the value of a property
that does not exist in the BrowsCap.ini file,
the resulting value is the string Unknown.
<HTML>
<HEAD>
<TITLE>
Browser Capabilities
</TITLE>
</HEAD>
<BODY>
<%
' The following code example instantiates a BrowserType object and shows
' the user whether the browser supports various functions. Assume that
' the BrowsCap.ini file being used by the BrowserType object is the
' example file shown previously and that the user is using Netscape
' Navigator 4.0.
Dim objBrowsType
Set objBrowsType = Server.CreateObject("MSWC.BrowserType")
' The following properties will all evaluate to True
' and will result in the phrase
' "Support for property
: TRUE":
%>
Support for frames: <%=objBrowsType.frames%><BR>
Support for tables: <%=objBrowsType.tables%><BR>
Support for cookies: <%=objBrowsType.cookies%><BR>
<%
' However, the value of the following property will be
' the string "Unknown" resulting in the phrase
' '"Support for VRML : Unknown" ' because the vrml property is ...Read now
Unlock full access