Tips & Tricks #16
Can I refer the currently selected node in the DOM tree from the console?
Edge, Chrome, Opera
Use
$0
to access the currently selected node. Additionally,$1
,$2
,$3
, ... will give you the last selected nodes in the reverse chronological order.
Firefox, Safari
Use
$0
to access the currently selected node.