Js 剪切板复制

function copyToClipBoard(){
         var clipBoardContent="";
         clipBoardContent+=location.href;
         clipBoardContent+="\r\n";
         clipBoardContent=this.location.href;
         window.clipboardData.setData("Text",clipBoardContent);
         alert("拷贝地址成功!");
           }
posted @ 2009-11-06 10:35  马建康  阅读(320)  评论(1编辑  收藏  举报