js objects and properties
Posted
by Harry
on Stack Overflow
See other posts from Stack Overflow
or by Harry
Published on 2010-06-05T12:03:14Z
Indexed on
2010/06/05
12:12 UTC
Read the original article
Hit count: 242
JavaScript
How Could I list/loop all properties of an object? Knowing only the object name.
eg
for(var prop in myobject){
alert(prop.name);
alert(prop.value);
}
© Stack Overflow or respective owner