I was inspired to write this post because I tried a lot to find this out. During debugging I needed it badly. There are many undocumented properties, that you can’t just alert. Sometimes, even you are in need of finding out a property/attribute of the object that accomplish your need. The code snippet below will list all the properties of any object with type. I’m sure this will be quite helpful to others too.
var result = “”;
for (var i in obj)
result += “obj.” + i + ” = ” + obj[i] + “”;
Obj = object to be reviewed
debuggerId = Id of the div or any other element, insider which you need to write the complete list of all attributes