I’m trying to use this line to detect browser type: IE or Firefox.
alert(isBrowser("Microsoft"));
but I get absolutely nothing, the alert doesn’t even pop up. Not sure what I’m doing wrong.
What would be the best practice way to detect browser type?
I hope this helps:
http://www.quirksmode.org/js/detect.html
(it’s a long script, so i don’t want to post it here)