<input type="text" size="30" id="url" value=" http://www.firefly365.com/"> <input type="button" value="复制链接" onClick="copyUrl()">

<script type="text/javascript">

function copyUrl(){

 var url = document.getElementById("url").value;

 window.clipboardData.setData("Text",url);

 alert("复制链接成功!");

}

</script>