Image

Imageutil wrote in Imagejavascript

Reflection

This message suggests it's possible to get a listing of the property names defined for a given object o using for (p in o). However, at least in Safari and Firefox, this seems to work only for Arrays and for objects related to the DOM. For example, if we have
o = new Object()
for (p in o) {
   alert(p)
}
not a single alert will appear. This is in spite of the fact that o.toString is a valid expression. Is there an alternative method for inspecting the properties of an object that will work with all object types? If so, what is it? Thank you.