TootleCode

Code

Display object’s properties in javascript — October 26, 2011

Display object’s properties in javascript

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

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

Advertisements