We Recommend

Pro JavaScript Techniques Pro JavaScript Techniques
Pro JavaScript Techniques is the ultimate JavaScript book for the modern web developer. It provides everything you need to know about modern JavaScript, and shows what JavaScript can do for your web sites. This book doesn't waste any time looking at things you already know, like basic syntax and structures.


Posted By

nicolaspar on 08/12/06


Tagged


Versions (?)


Who likes this?

2 people have marked this snippet as a favorite

meth
postNuKe


Javascript - Listar propiedades de un objeto


Published in: JavaScript 


  1. function listarPropiedades( obj ){
  2. html =""
  3. for(var i in obj){
  4. html +=('propiedad: '+i+' valor: '+obj[i])+"<br>";
  5. }
  6. popup=window.open('');
  7. popup.document.open();
  8. popup.document.write(html);
  9. popup.document.focus();
  10. popup.document.close()
  11.  
  12. }

Report this snippet 

You need to login to post a comment.