Oceansdeep7 / code-snippet

0 stars 0 forks source link

Document: elementFromPoint() method #5

Open Oceansdeep7 opened 2 months ago

Oceansdeep7 commented 2 months ago

The elementFromPoint() method, available on the Document object, returns the topmost Element at the specified coordinates (relative to the viewport).

Oceansdeep7 commented 2 months ago

By "top-most" they mean the one that has the highest z-index, or is above other elements in view, not in terms of hierarchy.