954,600 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Browser Question

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!!!

ipodgirl
Newbie Poster
7 posts since Mar 2005
Reputation Points: 10
Solved Threads: 0
 

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

peter_budo
Code tags enforcer
Moderator
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You