📘doc.elementFromPoint()

🔰 JSbrowserDOMtypesDocumentmethods ⟩ .elementFromPoint

returns the innermost (most deeply nested) and topmost (highest CSS z-index) element at that point (relative to the viewport).

the coordinates are relative to the viewport.

returns null if the point is out of viewport.

Last updated