How can I retrieve the pixel position (X and Y coordinates) of the textcursor within a <textarea>
relative to the <textarea>
or the viewport using JavaScript?
In my environment, dojo 1.6 is available.
I have found solutions with jQuery achieving similar things, but unfortunately I don't have jQuery available.