title: Simulate ctrl+v event on javascript
body: <p>I try to simulate <kbd>Ctrl</kbd>+<kbd>V</kbd> in javascript. I use firefox in Linux. What I do is:</p>
  
  <pre><code>var pressEvent = document.createEvent ("KeyboardEvent");    
  pressEvent.initKeyEvent ("keypress", true, true, window, true, false, false, false, 86, 0);
  var accepted=aTarget.dispatchEvent (pressEvent);
  </code></pre>
  
  <p>Somebody knows why it doesn't work??</p>
  
  <p>Thanks</p>