Browser detection with dojo

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
}

sources

Post a Comment

Your email is never published nor shared. You're allow to say what you want...