By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,605 Members | 2,137 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,605 IT Pros & Developers. It's quick & easy.

Properties of an object

P: 50

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

Jul 15 '08 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 5K+
P: 5,343
just use the for in loop:

Expand|Select|Wrap|Line Numbers
  1. for (var i in obj) {
  2.     alert(i);
  3. }
kind regards
Jul 15 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.