<input name= 'textarea1 ' type= 'text ' style= 'background-color:#FFFFFF ' value= 'http://www.hnxh.com/ptc/index.htm  参与网络调查,免费领取QQ秀。 ' size= '28 ' maxlength= '60' / >    
<input type= 'button' name= 'Button ' value= '复制给好友 ' style= 'background-color:#FFFFFF ' onClick="JM_cc( 'textarea1 ') "><script>
function JM_cc(id) {
var id=document.getElementById(id)
window.clipboardData.setData("Text",id.value); 
alert('你选择的图片地址已经复制到剪贴板:\n'+id.value)
}
</script>但firefox是不行的,IE可以用这方法,另外还有一个execCommand('copy', true)也行,这个少用不太清楚。