home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 February / CHIP_2_98.iso / software / pelne / optionp / iis4_07.cab / BrowserCap_JScript.asp < prev    next >
Text File  |  1997-10-25  |  2KB  |  72 lines

  1. <%@ LANGUAGE = JScript %>
  2.  
  3. <HTML>
  4.     <HEAD>
  5.         <TITLE>Using the Browser Capabilities Component</TITLE>
  6.     </HEAD>
  7.  
  8.     <BODY BGCOLOR="White" topmargin="10" leftmargin="10">
  9.  
  10.  
  11.         <!-- Display Header -->
  12.  
  13.         <font size="4" face="Arial, Helvetica">
  14.         <b>Using the Browser Capabilities Component</b></font><br>
  15.       
  16.         <hr size="1" color="#000000">
  17.  
  18.  
  19.         <!--á Create a BrowserType Object -->
  20.  
  21.         <% bc = Server.CreateObject("MSWC.BrowserType"); %>
  22.  
  23.  
  24.         <!-- Output a table describing the capabilities -->
  25.         <!-- of a user's browser-->
  26.  
  27.         <Table border=1>
  28.  
  29.             <tr>
  30.             <td>Browser Name</td>
  31.             <td> <%=bc.Browser %> </Td>
  32.  
  33.             <tr>
  34.             <td>Browser Version</td>            
  35.             <td> <%=bc.Version %> </Td>
  36.  
  37.             <tr>
  38.             <td>Major Version</td>
  39.             <td> <%=bc.Majorver %> </Td>
  40.  
  41.             <tr>
  42.             <td>Minor Version</td>
  43.             <td> <%=bc.Minorver %> </Td>
  44.  
  45.             <tr>
  46.             <td>Frame Support</td>
  47.             <td> <%=bc.Frames %> </Td>
  48.  
  49.             <tr>
  50.             <td>Table Support</td>
  51.             <td> <%=bc.Tables %> </Td>
  52.  
  53.             <tr>
  54.             <td>Cookie Support</td>
  55.             <td> <%=bc.Cookies %> </Td>
  56.  
  57.             <tr>
  58.             <td>Background Sound Support</td>
  59.             <td> <%=bc.BackgroundSounds %> </Td>
  60.  
  61.             <tr>
  62.             <td>VBScript Support</td>
  63.             <td> <%=bc.VBScript %> </Td>
  64.  
  65.             <tr>
  66.             <td>JavaScript Support</td>
  67.             <td> <%=bc.JavaScript %> </Td>
  68.  
  69.         </table>
  70.     </BODY>
  71. </HTML>
  72.