// get the element at a certain (x, y) position var element = document.elementFromPoint(x, y); // for a list of elements var elements = document.elementsFromPoint(x, y); .