elementFromPoint Method

DHTML, HTML, & CSS

 
Click to return to the DHTML, HTML & CSS home page    
duplicate Method     empty Method     DHTML Methods    

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 graphicsInternet Link or spriteInternet Link objects, you must set mouseeventsenabledInternet Link to 1.

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
Version data is listed when the mouse hovers over a link, or the link has focus.

document

See Also

clientX, clientY


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? write us!Internet Link

© 1999 microsoft corporation. all rights reserved. terms of useInternet Link.