Web features explorer

document.elementFromPoint() and document.elementsFromPoint()

Widely available
Tags: api

The document.elementFromPoint() and document.elementsFromPoint() methods find the top-most element at a given point in the viewport, or all elements at a given point in the viewport, respectively. To learn more, see Document: elementFromPoint() method, Document: elementsFromPoint() method at MDN.

Compatibility (view on caniuse.com)