SiteExperts.com Logo Home | Community | Developer's Paradise
User Groups | Site Tools | Site Information | Search
 Main Menu
 Resource

Browser Detection

Categories...
Client User Group
Site Design, Write Once!
Language
JavaScript
Product
IE3, IE4, NS3, NS4
Task
Browser Detection, Cross-Browser DHTML
Technology
ECMA-262

Sponsored Links
Developer's Paradise : Inside Technique :
Browser Detection
Submission by SiteExperts Staff

Go to the resource:
Browser Detection

Add to Assistant

Short Description
Introduces two techniques for determining the browser version and its capabilities.

Long Description
Introduces two techniques for determining the browser version and its capabilities.

Author
Scott Isaacs
Submission URL
http://www.SiteExperts.com/tips/functions/ts03/page1.asp
Submission Date
Jan 21,1998
Last Update
Jan 22,1998
 

Discussion and Rate this Resource
Overall Rating: 4.3

ovan on Jun 12, 2001 at 7:13:20 AMRating: 3

Some errors with this code:

  var isIE = navigator.appVersion.indexOf("MSIE")>0
  var isNav = navigator.appVersion.indexOf("Nav")>0

1) indexOf starts at 0, so it should be >=0

2) Netscape doesn't (always) use "Nav" so it is better to change those two lines in:

  var isIE = navigator.appName.indexOf("Micros")>=0
  var isNav = navigator.appName.indexOf("Netsc")>=0

Just my thoughts...

Kind regards, ovan.

trilobyte44 on Aug 12, 1999 at 10:59:21 AMRating: 2
While I usually use capabilities screening, I almost always have to screen out IE4+ for the Mac. It returns positive for document.all, but doesn't actually do quite a few of the DHTML things it thinks it can do.
PFOX on Jun 16, 1999 at 7:49:01 AMRating: 4
Great!, Just what I'm looking for.  How do I add checking for IE5.0 ?
kompeks on Feb 11, 1999 at 8:55:28 PMRating: 5
cool
Petter on Feb 6, 1999 at 2:55:35 AMNo Rating
Does appVersion for Navigator really contain the word "Nav"? I thought that appName or appCodeName was required to check for browser name.


To rate and comment on a resource, you must first logon.

If you are not registered, please register yourself to become a member of the SiteExperts.community.

User Name
Password

Copyright © 1997-2008 InsideDHTML.com, LLC. All rights reserved.