Name

Document.elementFromPoint( ) — determine which HTML element is at a given point

Availability

Internet Explorer 4

Synopsis

                  document.elementFromPoint(x, y)

Arguments

x

The X-coordinate.

y

The Y-coordinate.

Returns

The HTML element that appears at point (x, y) in document.

Get JavaScript: The Definitive Guide, Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.