title: window.clipboardData.getData("Text") doesnt work in chrome
body: <p>I have this javascript function:</p>
  
  <pre><code>function maxLengthPaste(field,maxChars)
  {
      event.returnValue=false;
      if((field.value.length + window.clipboardData.getData("Text").length) &gt; maxChars) {
          field.value = field.value + window.clipboardData.getData("Text").substring(0, maxChars - field.value.length);
          return false;
      }
      event.returnValue=true;
  }
  </code></pre>
  
  <p>The <code>window.clipboardData.getData("Text")</code> doesn't work in Chrome browser
  Is there any crossbrowser code to substitute it?</p>