2006-07-22 テキストエリア内のキャレットの位置を取得する javascript Get/Set Caret Position in TextArea/Input using JavaScript - Vishal Monpara ある場所で使ってみた。