Posted By

cochambre on 08/02/06


Tagged

show object element method methods properties inspect explain describe entity instance property


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

nicolaspar
vali29


Inspect and object and show properies and methods in a new window


 / Published in: JavaScript
 

  1. function inspect(obj) {
  2. var str = '';
  3. for (var k in obj)
  4. str += 'obj.' + k + ' = ' + obj[k] + '<br>';
  5. (window.open('about:blank')).document.write(str);
  6. }

Report this snippet  

You need to login to post a comment.