b5nfiq
Last Updated: February 25, 2016
·
2.206K
· eallam
Ericprofilenew

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:

body

If you want to take a look at the actual Object (with it's properties and prototype chain), use console.dir like so:

console.dir

Say Thanks
Respond