post your comment   print   send to a friend
Rate:   0% | Views: 542
Question categories:  JavaScript

Detecting browser type

The most common way to detect browser type is:

navigator.appName
navigator.appVersio

For example:
//detect Netscape 4.7+
if (navigator.appName=="Netscape"&&parseFloat(navigator.appVersion)>=4.7) alert("You are using Netscape 4.7+")

Notice how parseFloat() is utilized to retrieve the complete browser version.

Customer Feedback
Rate:   0% | Views: 542 | Please Rate:  
 
If you have other comments or ideas for future technical tips, please type them here:

Email: (optional)

Comments: (optional)

 Business Web Hosting | Business Web Hosting    Back to serch results
Browse the Base
Knowledge Base
Web Design
  Do It Yourself
    JavaScript
Messages
 

Blogging at Aplus.Net

Don't forget to check out our blog ! Keep up to date at Aplus.Net.

Private Area
 
Ask
in Private
   
Personal
Folder
 
Related Questions
 
1. Calculating days remaining until Christmas
 
2. Determining browser type using object detection
 
3. The Internet Explorer challenge
 
4. JavaScript and Forms
 
5. The Math object
 
Related Articles
 

Domain Names Exposed.

Home Browse Search Ask in Private Personal Folder   Help
powered by web hosting 
  Logged as: Guest