asp.net.ph

Skip Navigation Links

elementFromPoint Method

DHTML Methods


Returns the element for the specified iX and iY coordinates.

Syntax

oElement = document.elementFromPoint ( iX , iY ) 
Parameters

iX Required. X-offset, in pixels.
iY Required. Y-offset, in pixels.

Return Value

Returns an element object.

Remarks

Coordinates are supplied in client coordinates ( 0, 0 is the top left corner of the client area ). 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, MouseEventsEnabled must be 1.

Applies To

document

See Also

clientX, clientY



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note