«   Previous tip Next tip   »

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

Last updated: 12th July 2020
Console shortcut to get the currently selected DOM node

When you have a node selected in the Elements panel, use the expression $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.

Extra resources

Here are some other Console Panel tricks you may find useful.

«   Previous tip Next tip   »

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