Click to See Complete Forum and Search --> : checking browser


ChrisS
04-26-2005, 03:15 PM
Hi. I was wondering how you check whether the browser is IE or Firefox/Netscape? I have a script for Firefox/Netscape and a script for IE and only want one of them loaded for the users browser.

Thank you

felgall
04-26-2005, 03:45 PM
What about all of the other browser out there - Opera, Safari, Konquerer etc.

Rather than test for which browser (which isn't always accurate anyway) why not check if the browser supports the given script (feature sensing) instead. Better yet why not get a version of the script that follows the standards and will therefore work in all of these browsers.