Browser detection in dojo is pretty easy, simply use dojo.isXXX() properties.
ex: dojo.isFF; dojo.isIE; dojo.isChrome; dojo.isOpera;
Let’s get it more interesting. You’re targeting a specific version of IE? then use:
if (dojo.isIE > 6) {
// code to execute for ie7 and more
}