<script type = "text/javascript" > document.body.oncopy = function() {
    setTimeout(function() {
        var text = clipboardData.getData("text");
        if (text) {
     ...