Friday, January 8, 2010

List Object's Properties in Javascript

Here is the Code to List all the Properties of an Object in JavaScript

for (var propertyName in Object)
{
document.writeln(propertyName);
document.write('<BR>')
}

Note:- Object will be replaced by your objectName :-)

No comments:

Post a Comment