title: javascript catch paste event in textarea
body: <p>I currently have a textarea which I requires control over text that has been pasted in, </p>
  
  <p>essentially I need to be able to take whatever the user wants to paste into a textarea and place it into a variable.</p>
  
  <p>I will then work out the position in which they pasted the text and the size of the string to remove it from the textarea,</p>
  
  <p>Then at the end deal with the text thats is in the variable in my own way. </p>
  
  <p>My question: how would I go about getting a copy of the text in a variable that was just pasted in by the user?</p>
  
  <p>Thanks.</p>