title: Microsoft Edge browser how to read Clipboard data
body: <p>I am unable to read clipboard data in Microsoft Edge browser. i am using the below javascript.</p>
  
  <pre><code>if (window.clipboardData &amp;&amp; window.clipboardData.getData) { // IE
         pastedText = window.clipboardData.getData('Text');
   } else if (e.clipboardData &amp;&amp; e.clipboardData.getData) {   //non-IE
         pastedText = e.clipboardData.getData('text/plain');
   }
  </code></pre>
  
  <p>Non of the if/elseif block is executed in Edge. I tried using </p>
  
  <pre><code>e.originalEvent.clipboardData.getData('text/plain');
  </code></pre>
  
  <p>But I am getting 'Access is denied.' error. </p>
  
  <p>Let me know, if anybody know how to fix this issue. </p>