if you want to display object’s properties of a unknown object, just use this code:

for(att in myobject){
alert(att);
}

Advertisements