|
Browser Capabilites
The script below demonstrates the most commonly
used property of the Browser Capabilites component.
filename=/learn/test/bc.asp
<html><head>
<TITLE>bc.asp</TITLE>
</head><body bgcolor="#FFFFFF">
<% Set bc = Server.CreateObject("MSWC.BrowserType") %>
Browser Name: <%=bc.browser %><p>
Browser Version: <%=bc.version%><p>
<% if (bc.frames = TRUE) then %>
I noticed you do frames<p>
<% else %>
I noticed you are frame challenged<p>
<% end if %>
<% if (bc.tables = TRUE) then %>
I noticed you do tables<p>
<% else %>
I noticed you can't do tables<p>
<% end if %>
<% if (bc.BackgroundSounds = TRUE)then %>
I noticed you allow me to play music<p>
<% else %>
I noticed you aren't a music listener<p>
<% end if %>
<% if (bc.vbscript = TRUE) then %>
I noticed you are VBscript capable<p>
<% else %>
I noticed you can't understand VB Script<p>
<% end if %>
<% if (bc.javascript = TRUE) then %>
I noticed you understand JScript<p>
<% else %>
I noticed you don't understand JScript<p>
<%
end if
set bc=nothing
%>
</body></html>
 |  |  |
 |
There are many worthy charities!!. But perhaps help starving children in Africa or South America AND help Charles too.
a $5 tip buys him lunch at McDonalds,
a $20 tip buys his kid Hitoshi a new computer game,
a $39 tip buys his daughter Michiko a few nice outfits.
See our donor list.
|  |
 |  |  |
|
|
|
|