elementsFromPoint method

JSArray<Element> elementsFromPoint(
  1. num x,
  2. num y
)

The elementsFromPoint() method of the Document interface returns an array of all elements at the specified coordinates (relative to the viewport). The elements are ordered from the topmost to the bottommost box of the viewport.

It operates in a similar way to the Document.elementFromPoint method.

Implementation

external JSArray<Element> elementsFromPoint(
  num x,
  num y,
);