1window.scrollY + document.querySelector('#elementId').getBoundingClientRect().top // Y
2
3window.scrollX + document.querySelector('#elementId').getBoundingClientRect().left // X
4
1// get the element at a certain (x, y) position
2var element = document.elementFromPoint(x, y);
3
4// for a list of elements
5var elements = document.elementsFromPoint(x, y);
6
7.