Can I DevTools?
All
153
Accessibility
9
Audit
2
CSS
37
Console
14
Elements
26
JavaScript
5
Network
29
Other
18
Performance
1
Sources
12
Favorites
0
About
Testimonials
It is like
@CanIUse
but for the browser devtools, created & curated by
@pankajparashar
. Get weekly tips & tricks for your favorite browser devtools by
subscribing
to the newsletter!
Ads via Carbon
1
2
3
4
Twitter
Github
Substack
Theme
Console
Edit
Get selected node
Can I refer the currently selected node in the DOM tree from the console?
Last Modified
4 months ago
Authors
@pankajparashar
@kilianvalkhof
Test Live
via
BrowserStack
Newsletter
tips-tricks-16
Related (0)
EDGE
Share
Notes
Use
$0
to access the currently selected node. Additionally,
$1
,
$2
,
$3
, ... will give you the last selected nodes in the reverse chronological order.
References (0)