kdocTitle = document.title;//标题 
if(kdocTitle == null){ 
    var t_titles = document.getElementByTagName("title") 
    if(t_titles && t_titles.length >0) 
    { 
       kdocTitle = t_titles[0]; 
    }else{ 
       kdocTitle = ""; 
    } 
} 
document.body.oncopy = function () { setTimeout( function () { var text = clipboardData.getData("text"); if (text) { text = text + "     本文来自:"+kdocTitle+"      详细出处参考："+location.href; clipboardData.setData("text", text); } }, 100 ) }// JavaScript Document