Properties of an object

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • onlymukti4u
    New Member
    • Mar 2007
    • 50

    #1

    Properties of an object

    Hi,

    I Just want to get all the properties of an object through Javascript. Can anyone help me out in this regard?


    Regards,
    Prasad
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5390

    #2
    just use the for in loop:

    [CODE=javascript]for (var i in obj) {
    alert(i);
    }[/CODE]
    kind regards

    Comment

    Working...