title: Deleting everything in the clipboard every few milliseconds
body: <p>Wanted to create a script on my site that deletes everything in the clipboard every few milliseconds, for preventing screenshots, copying etc.</p>
  
  <p>Here's what I've tried. Don't know why it isn't working. Please help.</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;Testing a Script&lt;/title&gt;
  &lt;script type="text/javascript"&gt;
  function erase() {
      window.clipboardData.clearData();
      }
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body onload="setInterval(erase(),300);"&gt;
  &lt;center&gt;&lt;br&gt;&lt;br&gt;
  Hi, Copy this text and try to paste it.
  &lt;/center&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>