if(firefox and is on a computer){ alert(\'using firefox on a computer\') }else{ alert(\"using something else!\"); }
How can I do this?
It's better to detect features you need, not a browser. For example, if you need to know if foo() is supported, you can check it with if(foo){}