Hi,
I am working in a sort of “virtual classroom”. I needed to disable the copy/paste functionality in the application pages, to prevent users for copying the info and store it in their PC. The idea is the user to read, to take notes, etc … but not to copy the info from the screen, so they have to enter to the page(s) in order to study from there.
I found this piece of code to disable PrintScreen / Copy+Paste functionality:
======
<html>
<head>
<script language=”javascript”>
function setClipBoardData(){
setInterval(“window.clipboardData.setData(‘text’,”)”,20);
}
function blockError(){
window.location.reload(true);
return true;
}
</script>
</head>
<body onload=”setClipBoardData();”>
YOU TRY TO COPY AND PASTE THIS SCREEN, AND ALL THE ACTIVE SCREENS
</body>
I noticed the Copy/Paste functionality of my Windows session was disabled (i could not copy and/or paste anything, from the moment I open the page with the code mentioned above) so I had to restart my user session (thank God I didn’t need to restart the computer ? ) and then I have my copy/paste functional¡ty back.
Do you have some ideas in order to enable again the Copy/Paste functionality, by modifying this piece of code?
T.I.A