Using javascript to detect browser type

Posted by Duber on Stack Overflow See other posts from Stack Overflow or by Duber
Published on 2010-03-22T06:57:47Z Indexed on 2010/03/22 7:01 UTC
Read the original article Hit count: 292

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?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about firefox