selectedText attribute
cursorPosition property
absCursorPosition property
Control selection with properties