Returns the element for the specified iX
and iY
coordinates.
Syntax
oElement = document.elementFromPoint(iX, iY)
Parameters
iX |
Required.
Integer that specifies the X-offset, in pixels. |
iY |
Required.
Integer that specifies the Y-offset, in pixels. |
Return Value
Returns an element object.
Remarks
Coordinates are supplied in client coordinates. The top left corner of the client area is (0,0). For elementFromPoint to exhibit expected behavior, the object or element located at position (x, y) must support and respond to mouse events.
Standards Information
There is no public standard that applies to this method.
Applies To
See Also
clientX, clientY