elementFromPoint()

This method is used to return a reference to an object beneath the coordinates, measured in pixels, specified by the X-Axis and Y-Axis parameter values. In order for the object to respond to this method, it must be able to respond to mouse events. If more than one object is close to the location specified, the one with the highest z-index value will be referenced. If the z-index values are the same or haven't been specfied, the object that appears last in the source code will be referenced.

syntax:

elementFromPoint(X , Y)

This method is used with the following:

document