3

In the old version of Chrome (not sure which version, I know it was quite some time ago), I could type the following into a console using the Chrome Developer Tools, and it would give me all associated properties of the newly created object:

document.createElement('a');

Now, when I do the same, I'm given very little back, and I can barely do anything with the returned item in the console, whereas I would just like to inspect it.

chrome-dev-tools

How do I view all the properties of this element, etc. as with the old version of Chrome - so I can inspect all properties and their values?

Many thanks.

1 Answer 1

5
var a = document.createElement('a');
console.dir(a)
Sign up to request clarification or add additional context in comments.

2 Comments

Thanks! Is there a reason they took this behaviour out by default?
I don't think there's a changelog for the chrome devtools to look at, but I think it makes more sense - think about it, how would you "print" out the result of something by default? with console.log or console.dir?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.