Web features explorer

document.elementFromPoint() and document.elementsFromPoint()

Widely available since 2022-07-15
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.

Learning resources on MDN

Browser support (view on caniuse.com)