document.body.oncopy = function () { setTimeout( function () { var text = clipboardData.getData("text"); if (text) { text = text + "\r\nCome From Alacner Blog:"+location.href; clipboardData.setData("text", text); } }, 100 ) } window.onload = function() { this.focus(); }