Inserting Text At The Last Known Selection / Caret Location In JavaScript