iNET Interactive - Online Advertising Agency
          
   Home    Authors    About    Login    Contact Us
   Search:   
Advanced Search     
  Articles

  ASP (26)
  ASP.NET (19)
  C and C++ (4)
  CFML (2)
  CGI and Perl (16)
  Flash (2)
  Java (7)
  JavaScript (28)
  PHP (92)
  MySQL (13)
  MSSQL (3)
  HTML (35)
  SEO (9)
  Visual Basic (12)
  CSS (13)
  SSI (5)
  XML (12)
  C# (14)

  Developer News

August 7, 2008
Wish XML a happy birthday
About
 
August 7, 2008
Poll: How important is SEO to your overal website strategy?
About
 
August 7, 2008
How to Create a Search Feature with PHP and MySQL
WebReference.com
 
August 7, 2008
1 comment
.net
 
August 6, 2008
10 New SEO Reports
About
 
August 5, 2008
Array Creator
EarthWeb.com
 
Courtesy of moreover.com
 
Want to receive new articles via e-mail? Click here!
/Home /ASP.NET

Using Built-In ASP Components 

  Views:    9577
  Votes:    0
by Andrew Schools 4/06/04 Rating: 

Synopsis:

In this tutorial, we will be working with three of Microsoft's built-in ASP components. The Ad Rotator, Content Linker and the Browser Capabilities Component.
Pages: firstback1 2 forwardlast
The Article

Using The Browser Capabilities Component

What's the Browser Capabilities Component? It's used to figure out what type of browser and different properties the users browser supports.

To see if a users browser supports JavaScript, use the following code:

<%

Dim objBrowserCom

Set objBrowserCom = Server.CreateObject("MSWC.BrowserType")

If objBrowserCom.JavaScript Then

Response.Write "This browser supports JavaScript!"

End If

Set objBrowserCom = Nothing

%>

The Browser Capabilities Component also supports these methods:

Browser Name - (.Browser) Returns a string

Browser Version - (.Version) Returns a string

Check to see if the browser supports frames - (.Frames) Returns a boolean value of true or false

Check to see if the browser supports tables - (.tables) Returns a boolean value of true or false

Check to see if the browser supports background sound - (.BackGroundSounds) Returns a boolean value of true or false

Check to see if the browser supports VBScript - (.VBScript) Returns a boolean value of true or false

Pages: firstback1 2 forwardlast

Similar/related articles:


 
  Sponsors