title: Javascript double click text transform into textbox
body: <p>What is the javascipt code that will edit a text on double click. The process is I have a text and if I double click it, a text box will appear, and if I press enter the word will change depends on what you've type.</p>
  
  <p><b>Sample</b><pre>
  This is sample text. $nbsp;$nbsp; --> if I double click it a textbox will appear.<br />
  &lt;input type=&quot;text&quot; value="This is sample text." name=&quot;&quot; /&gt;
  </pre><br /></p>
  
  <p><b>Sorry for asking this. I am a newbie in javascript</b></p>