title: select() a textarea within an iframe
body: <p>I have a textarea within an iframe.  I want to select the textarea text with an onclick event in JavaScript.</p>
  
  <p>Example:</p>
  
  <pre><code>I have an iframe.
  
  The inner content of the iframe is this:
  &lt;textarea id="textarea" disabled onclick="selectthis()"&gt;
  "content of textarea"
  &lt;/textarea&gt;
  </code></pre>
  
  <p>I want to select the text so the user can copy it:</p>
  
  <pre><code>I put this at the head of my page:
  
  function selectthis() {
     document.getElementById('textarea').select();
  }
  </code></pre>
  
  <p>But when I click on the textarea, it's not selected.</p>