Obtenha o elemento que o cursor pairava

window.addEventListener('click', function(e) {
  var x = e.clientX;
  var y = e.clientY;
  var hoverElement = document.elementFromPoint(x, y);
  console.log(`Hover element is ${hoverElement.tagName}`);
});
MunchDuster