views:

15

answers:

0

The following works well in desktop browser

 evt.target.innerHTML

but doesn't work so well on mobile safari on the IPad. You have to click on the exact top of the div, which can be difficult. I also tried doing something like

 var x = evt.pageX,
     y = evt.pageY,
     div = document.elementFromPoint(x, y);

but x and y are zero. Wish Ipad had a decent js debugger....