RSS Forums RSS
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 1928 | Replies: 1
Reply
Join Date: Mar 2005
Location: Atlanta
Posts: 7
Reputation: ipodgirl is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
ipodgirl's Avatar
ipodgirl ipodgirl is offline Offline
Newbie Poster

Browser Question

  #1  
Jun 17th, 2005
I have a JavaScript to detect between Netscape version 6& below and IE, is there anything to detect Firefox?

Basically I have two sets of code I want to display. One set for IE and FireFox, another set for old Netscape.

Right now using the code below doesn't work because FireFox somehow registers as Netscape version3.

IS there something like navigator.appName == "FireFox"?

browser = (
((window.navigator.platform == "Win32") && (navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 6 )) ||
((window.navigator.platform == "Win32") && (navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 ))
)

Thanks!!!
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2004
Location: London or Slovakia
Posts: 2,716
Reputation: peter_budo is just really nice peter_budo is just really nice peter_budo is just really nice peter_budo is just really nice 
Rep Power: 12
Solved Threads: 322
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: Browser Question

  #2  
Jun 17th, 2005
I have god news and bad news for you.

Bad news , I do not have code for you!

Good news , I know where to learn more about detecting browser settings and lot more usefull stuff

My magic book tells me that the name of the site is www.browserhawk.com

I just quickly look at it, and I tell you their are bombastic
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

LJC - London Java Community, JAVAWUG (Java Web User Group), Coding the Architecture
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 11:55 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC