I am going to forget this

I asked in IRC how to display all the properties of a JS object, Eric clued me…and I don’t want to have to think about it anymore, so I am putting it here:


for ( key in obj ) { keys += key + "\n" } alert (keys);

It should be noted that this will result in one giant popup :)

About Nathan Powell

I am a middle aged technologist freak-ball.
This entry was posted in programming. Bookmark the permalink.

4 Responses to I am going to forget this

  1. if you have access to the document, you could also do a writeln(keys); so that you have a scrollbar for large objects.

  2. Pingback: dress easter girl toddler

  3. Pingback: nude thumbnail pic