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