title: Javascript CTRL-C is triggered in <textarea>
body: <p>Sorry, I am not a very best Javascript-programmer, but I am making a  homepage for my website ( <a href="http://coins.kalf999.com/menu.php" rel="nofollow">http://coins.kalf999.com/menu.php</a>) and I was producing some code, but I was suprised it did not work untill....now!</p>
  
  <p>But I still not understand why....
  Who can help me..?</p>
  
  <p>I made some small code to show the difference.</p>
  
  <p>In the 1st textarea I can copy some text, press CTRL-C, which hides the textarea and you can test the contents of the clipboard in the 2nd textarea. I use a 1 millescond setTimeout-function, which works !</p>
  
  <p>My old code was the second example:
  In the 3rd textarea I can copy some text again, press CTRL-C, which hides the textarea and test the contents of the clipboard in the 4rd textarea. 
  I not use setTimeout-function, which , obviously, not works !</p>
  
  <p>I can not imagine that a "hidden" object is creating a malfunction for a Copy-command.....</p>
  
  <p>What happens over here...? ;(</p>
  
  <p>I made test-program called tst.html and tst.js</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;script type="text/javascript" src="tst.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;div id = "box1"&gt;&lt;/div&gt;
  &lt;div id = "testarea1"&gt;&lt;/div&gt;
  &lt;div id = "box2"&gt;&lt;/div&gt;
  &lt;div id = "testarea2"&gt;&lt;/div&gt;
  &lt;script&gt;
  document.getElementById("box1").innerHTML= '&lt;textarea rows="4" onkeypress="CTRLC1(event)"&gt;Select some text and copy with CTRL-C.The &lt;textarea&gt; becomes hidden.&lt;/textarea&gt;';
  document.getElementById("testarea1").innerHTML= '&lt;textarea rows="4" "&gt;Paste text with CTRL-V&lt;/textarea&gt;';
  document.getElementById("box2").innerHTML= '&lt;textarea rows="4" onkeypress="CTRLC2(event)"&gt;Select some text and copy with CTRL-C.The &lt;textarea&gt; becomes hidden.&lt;/textarea&gt;';
  document.getElementById("testarea2").innerHTML= '&lt;textarea rows="4" "&gt;Paste text with CTRL-V&lt;/textarea&gt;';
  &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>and the JS-file test.js</p>
  
  <pre><code>function CTRLC1(event) {    
      if (event.ctrlKey == true){
          var x = event.which || event.keyCode;    
          if (x==99 || x==67){
          setTimeout(function(){document.getElementById("box1").style.visibility ="hidden";}, 1);
          }
      }
  }
  function CTRLC2(event) {    
      if (event.ctrlKey == true){
          var x = event.which || event.keyCode;    
          if (x==99 || x==67){
          document.getElementById("box2").style.visibility ="hidden";
          }
      }
  }
  </code></pre>