Inspect a DOM Object with console.dir
When you are in the Chrome DevTools console and you hold a reference to a DOM object, the console tries to be friendly and prints out your object as a string of HTML:
If you want to take a look at the actual Object (with it's properties and prototype chain), use console.dir
like so:
Written by Eric Allam
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Chrome
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#