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.
When using this method with the Structured Graphics or Sprite objects, you must set MouseEventsEnabled to 1.
Applies To
See Also