www.fgks.org   »   [go: up one dir, main page]

Click to Rate and Give Feedback
Methods
 elementFromPoint Method
elementFromPoint Method

Returns the element for the specified iX coordinate and the specified iY coordinate.

Syntax

oElement = document.elementFromPoint(iX, iY)

Parameters

iX Required. A Integer that specifies the X-offset, in pixels.
iY Required. A Integer that specifies the Y-offset, in pixels.

Return Value

Returns an element object.

Remarks

Coordinates are supplied in client coordinates. The upper-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.

Standards Information

There is no public standard that applies to this method.

Applies To

document

See Also

clientX, clientY
Tags What's this?: Add a tag
Community Content
 
Add Community Content
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker
DCSIMG