Object Reflections


/ Published in: JavaScript
Save to your folder(s)

this is my way of working out the contents of an object when I don't have access to a debugger like firebug


Copy this code and paste it in your HTML
  1. for (key in object) {
  2. alert ("object["+key +"] = "+object[key]);
  3. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.