document.elementFromPoint()

Move your mouse around to see which element is detected

Coordinates: (0, 0)
Element:
Class:
ID:
Box 1
Box 2
Box 3
Box 4
Nested