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

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