/dev tips

🎊   The Modern DevTools course has now started! Visit ModernDevTools.com to find out more   🎊

(14) DevTools Quickly monitor events Is running Network Filter (16)

Chrome DevTools: Console shortcut to get the currently selected DOM node

15 Apr 2015
Console shortcut to get the currently selected DOM node

When you have a node selected in the Elements panel, use $0 to access it in the Console panel. On this subject, you can also use $_ to access the value of the most recently evaluated expression.

Sign up to receive a developer tip, in the form of a gif, in your inbox each week.