Posted By

aindrei on 01/15/10


Tagged

javascript object debug properties alert


Versions (?)

JavaScript : Alert all the properties of an object


 / Published in: JavaScript
 

  1. var str = "";
  2. for (prop in obj)
  3. {
  4. str += prop + " value :" + obj[prop] + "\n";
  5. }
  6. alert(str);

Report this snippet  

You need to login to post a comment.