The problem I\'m trying to solve is \"What\'s at this position?\"
It\'s fairly trivial to get the x/y position (offset) of a DIV, but what about the reverse? How do
function getDivByXY(x,y) { var alldivs = document.getElementsByTagName('div'); for(var d = 0; d < alldivs.length; d++) { if((alldivs[d].offsetLeft == x) && (alldivs[d].offsetTop == y)) { return alldivs[d]; } } return false; }