Returns the element for the specified iX
and iY
coordinates.
dhtml语法
oElement = document.elementFromPoint(iX, iY)
Parameters
iX |
Required.
Integerthat specifies the X-offset, in pixels. |
iY |
Required.
Integerthat 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.
是否符合公共标准
There is no public standard that applies to this method.
Applies To
更多语法参考
clientx, clientY