Chrome DevTools: Addressing DOM elements

Whether Chrome, Firefox, Opera, Safari or even Internet Explorer: While well-engineered developer tools were a unique selling point of Firefox and the popular Firebug plug-in until a few years ago, powerful developer tools are now part of the standard scope of every browser in which there is a lot to discover gives.


I just came across a trick to address currently selected objects in the document tree without detours in JavaScript.

The somewhat inconspicuous reference is:

$0

This makes any kind of manipulation possible, for example

$0.innerHTML

output of the content directly to the console.

Back