With this code I can check the caret position in a textarea in firefox:
document.getElementById(\"myTextArea\").selectionStart
This doesn\'
See the answers here: Caret position in textarea, in characters from the start
Edit
I sorted out the line breaks issue in IE and posted an answer here: Caret position in textarea, in characters from the start