getInputSelection() provides carrot position for textarea. Works as selectionBegin and selectionEnd for all browsers