有用的JavaScript函数!
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>
<BODY>
<script>
function copyToClipBoard()
{
var clipBoardContent=document.title;
clipBoardContent+='\r\n' + document.location.href;
window.clipboardData.setData("Text",clipBoardContent);
alert("复制成功,请粘贴到你的QQ/MSN上推荐给你的好友!\r\n\r\n内容如下:\r\n" + clipBoardContent);
}
</script>
<INPUT title='点击复制标题和地址到剪贴版,直接在MSN/QQ上粘贴即可.' type=button value='点击复制本页地址,传给QQ/MSN上的好友' onclick='copyToClipBoard()'>
</BODY>
</HTML>