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 🙂

Advertisements

One Response to List Object’s Properties in Javascript

  1. HI Vimal,

    Excellent post mate.

    It has been very very use full for me while i am working with telerik controls.

    Using it and i can browse all the properties of Client side object modal of any telerik control .

    Cheers.. 🙂

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: