<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>end0tknr</author_name>
  <author_url>https://blog.hatena.ne.jp/end0tknr/</author_url>
  <blog_title>end0tknr's kipple - web写経開発</blog_title>
  <blog_url>https://end0tknr.hateblo.jp/</blog_url>
  <categories>
    <anon>javascript</anon>
  </categories>
  <description>function get_caret_pos( elm ) { if (elm.selectionStart != undefined){ return elm.selectionStart; } //for IE elm.focus(); var range = document.selection.createRange(); range.moveStart( &quot;character&quot;, - elm.value.length ); return range.text.length; } &lt;input type=&quot;text&quot;&gt;はよいとして、&lt;textarea&gt;もカーソル位置を特定できるかな?</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fend0tknr.hateblo.jp%2Fentry%2F20100818%2F1282126968&quot; title=&quot;テキストボックス( html   )におけるカーソル(caret)位置を取得 - end0tknr&amp;#39;s kipple - web写経開発&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2010-08-18 19:22:48</published>
  <title>テキストボックス( html   )におけるカーソル(caret)位置を取得</title>
  <type>rich</type>
  <url>https://end0tknr.hateblo.jp/entry/20100818/1282126968</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
