Browser Capabilities Components The main role of this component is to extract the version information of the recognition client browser. The principle is such that when the client browser sends a page request to the server, a USER Agent HTTP title is automatically sent, and the title is a declarative browser and its version ASCII string. Browser Capabilities components map the user agent to the browser indicated in the file browscap.ini, and identify the customer browser through the properties of the Browsertype object. If the object does not find items matching with the title in the browscap.ini file, the default browser properties will be used. If the object does not find a match and the default browser settings are not specified in the browscap.ini file, it sets each attribute to a string "unknown". By default, the browscap.ini file is stored in Windows / System / INERSRV (if it is 95/98 pws4) or NT / System32 / INERSRV (if it is NT) directory, you can edit this text file yourself to add Your own properties or modify the file based on the updated file of the latest browser version. It can be concluded that the Browser Capabilities components are also extracted in a file and then compare the display. How do you apply? 1, btinfo.asp
<% set bc = server.createObject ("mswc.browsertype")%> browser name is Browser: <% = bc.browser%>
browser version is Version: <% = bc.version%>
Browser main versions are Majorver: <% = bc.majorver%>
Browser secondary version is minorver: <% = bc.minorver%>
The running platform of the browser is Platform: <% = BC. Platform%>
Obviously "<% SET BC = Server.createObject (" Mswc.BrowSertype ")%>" is the establishment of the browser component, such as "BC.Browser", is a specific feature of displaying the browser. 2, btif.asp
<% set bc = server.createObject ("mswc.browsertype")%> <% if bc.frames = true kil> browser supports multi-window (frames) display <% else%> Browser does not support multi-window (Frames <<% END IF%>
<% if bc.backgroundsounds = true kil> browser can play background music (Backgroundsounds) <% ELSE%> Browser can not play background music (Backgroundsounds) <% end IF% >
<% if bc.tables = true the%> Browser Support Table (Tables) Display <% ELSE%> Browser Not Supported <% END IF%>
<% IF BC .berta = true kil> Your browser is a test version (beta) <% else%> Your browser is a forma version <% end if%>
<% if bc.activexcotrols = true kil > Browser Support Active Control <% ELSE%> Browser does not support ACTIVE control <% end if%>
<% if bc.cookies = true life%> Browser supports cookie function <% else%> Browser Support cookie function <% end if%>
<% if bc.vbscript = true life%> Browser supports VBScript <% else%> Browser does not support VBScript <% end if%>
<% IF BC .jscript = true life%> Browser supports JScript <% else%> Browser does not support JScript <% end if%> This code is to detect the support of all kinds of web technology for all kinds of web technology, then according to certain Performance to change 3, FRAM.ASP
<% set bc = server.createObject ("mswc.browsertype") if bc.frames kil>