The currently selected DOM node

Published on Updated on

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.

Updated on Improve article

Back

Deprecations and removals in Chrome 74

Next

New in Chrome 73

This site uses cookies to deliver and enhance the quality of its services and to analyze traffic. If you agree, cookies are also used to serve advertising and to personalize the content and advertisements that you see. Learn more about our use of cookies.