elementFromPoint Method
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
[ Object Name ] Platform Version Win16: Win32: Mac: Unix: WinCE: Version data is listed when the mouse hovers over a link, or the link has focus.
See Also
Did you find this topic useful? Suggestions for other topics? write us!
© 1999 microsoft corporation. all rights reserved. terms of use.