Last Updated: February 25, 2016
·
915
· kelion

Chrome dev tools: console and elements tree connect

Use $0 in console to work with currently selected element from elements tree. $1 to previous selected element, etc.

Picture

To select element in elements tree from console, use inspect(element):

Picture

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Did you know?

JavaScript on a page runs with the privileges of that origin. One altered library, tag manager, or snippet can read inputs, change what people see, and call your APIs as the user.

Security insights from Cside