Find coordinates of text cursor

Hello.

Is there any way of tracking the coordinates of a cursor in an input text box?

Thanks