Reputation: 5344
Is there a way to select the top most DOM element at a certain x-y position with Javascript?
So give x and y, what DOM element is there?
Upvotes: 2
Views: 782
Reputation: 523764
You can use document.getElementFromPoint.
document.getElementFromPoint
Upvotes: 3