I have definitely used this code before, but this time around it throws an error.
My code:
$(document).click(function (e) {
var getPoint = document.getElementFromPoint(e.pageX,e.pageY);
alert(getPoint);
});
And I get the following Error:
document.getElementFromPoint is not a function
In Firefox this function is called document.elementFromPoint()
https://developer.mozilla.org/En/DOM:document.elementFromPoint
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With