Every letter doesn't have it's own wrapper element, everything is inside paragraph.
And I am wondering if I can retrieve the position of the letter in string when I hover over it's parent element?
For example: <p>The quick brown fox jumps over the lazy dog</p>
has innerText.length = 43
, if I hover over f
, it should return 16
.
Any way to do this?
Thanks in advance!
and do some math. with a common font and fixed size it might work.
– miki Sep 05 '11 at 16:38