Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 1928 | Replies: 1
![]() |
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!!!
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!!!
•
•
Join Date: Dec 2004
Location: London or Slovakia
Posts: 2,716
Reputation:
Rep Power: 12
Solved Threads: 322
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
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
Publilius Syrus
(~100 BC)
LJC - London Java Community, JAVAWUG (Java Web User Group), Coding the Architecture
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)






Linear Mode