elementFromPointelementFromPoint*
*Contents  *Index  *Topic Contents
*Previous Topic: duplicate
*Next Topic: empty

elementFromPoint

Description

Returns the element for the specified x and y coordinates.

Syntax

element = object.elementFromPoint(x, y)

ParameterDescription
x (Integer) X-offset, in pixels.
y (Integer) Y-offset, in pixels.

Return Value

Returns an element object.

Remarks

Coordinates are supplied in window coordinates (0,0 is the top-left corner of the window). For elementFromPoint to exhibit expected behavior, the object or element located at position (x, y) must support and respond to mouse events. MouseEventsEnabled must be 1.

Applies To

document


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.