Using Javascript how can I identify the element at a given position? Basically I'm looking to write a function that takes two input parameters (the x and y coordinates) and returns the html element at the position on the screen represented by the parameters.
+6
A:
document.elementFromPoint(x, y);
http://msdn.microsoft.com/en-us/library/ms536417%28VS.85%29.aspx
https://developer.mozilla.org/en/DOM/document.elementFromPoint
rahul
2009-08-11 10:53:17
wow, thanks, didnt know that +1
Eldar Djafarov
2009-08-11 11:00:15