Dynamic property evaluation

wxdqz

New Member
I've seen how to loop through an object's properties using:

for (property in object)
{
}

What I would like to do is extract the value of that property.

for (property in object)
{
alert ("object." + property + ": " + object.(property));
}

What is the appropriate syntax for property value evaluation?
The part I'm wondering about is the object.(property) bit.
 
Back
Top