selEnd ?-w win?
Return the end of the hilited selection, or the current insertion point if no text is selected. In the case of a multiple selection, this is the end of the first selected range.