๐Ÿ“˜doc.elementFromPoint()

๐Ÿ”ฐ JS โŸฉ browser โŸฉ DOM โŸฉ types โŸฉ Document โŸฉ methods โŸฉ .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