<HTML> <HEAD> <TITLE> New Document </TITLE> <script language="javascript"> function copyInBoard(s) { window.clipboardData.setData("text",s); alert("网址复制成功啦!"); } </script> </HEAD> <BODY> <script language="javascript" type="text/javascript"> document.write("<input onclick=\"javascript:copyInBoard(url);\" name=\"urlText\" id=\"urlText\" style=\"width:400px;height:18px;\" value=\""); document.write(location.href); document.write("\" size=\"28\" />"); var url = location.href; url +="\r\n刀郎的歌手主页,里面很多他的音乐和新闻,不错哦,来看看....^_^"; </script> <input name="Input" value="分享给好友" type="button" class="btn" onclick="javascript:copyInBoard(url);"/> </BODY> </HTML>