Can I DevTools?

Share this post

Tips & Tricks #16

canidevtools.substack.com

Tips & Tricks #16

Can I refer the currently selected node in the DOM tree from the console?

Pankaj Parashar
Sep 20, 2022
Share this post

Tips & Tricks #16

canidevtools.substack.com

Edge, Chrome, Opera

  1. Use $0 to access the currently selected node. Additionally, $1, $2, $3, ... will give you the last selected nodes in the reverse chronological order.

canidev.tools/get-selected-node/edge

Firefox, Safari

  1. Use $0 to access the currently selected node.

canidev.tools/get-selected-node/firefox
Share this post

Tips & Tricks #16

canidevtools.substack.com
Previous
Next
Comments
TopNew

No posts

Ready for more?

© 2023 Pankaj Parashar
Privacy ∙ Terms ∙ Collection notice
Start WritingGet the app
Substack is the home for great writing