Thanks, but that is just the issue. I don't need the values, I need the property names. Suppose I have a "car" object with only 3 possible properties:
car.type = "SUV"
car.brand = "Ford"
car.color = "Blue"
The thing is, I only know that I can use the "car" object. I don't know which properties it supports. So I need something like:
//Show me all properties
var x = "You can use: ";
for(var i in car)
{
x = x + i + " ";
}
alert(x); //Outputs: "You can use type brand color".
So now I know that car.licenseplate will not work. "car" is not an object I made, it is part of an app I use and I need to know what properties I can use with it (no documentation available on the app).