Click to return to the DHTML, HTML     
duplicate Method     empty Method     DHTML Methods    
Web Workshop  |  DHTML, HTML & CSS

elementFromPoint Method


Returns the element for the specified iX and iY coordinates.

Syntax

oElement = document.elementFromPoint(iX, iY)

Parameters

iXRequired. Integer that specifies the X-offset, in pixels.
iYRequired. 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

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:

document

See Also

clientX, clientY



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.