`
webcode
  • 浏览: 5946321 次
  • 性别: Icon_minigender_1
  • 来自: 上海
文章分类
社区版块
存档分类
最新评论

把内容复制到剪切板

 
阅读更多
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<script type="text/javascript" language="javascript">
	function copyToClipBoard(){
		var clipBoardContent='';
		clipBoardContent+='我的空间我做主,有问题请留言! \r\n http://1240840231.qzone.qq.com';
		window.clipboardData.setData("Text",clipBoardContent);
   		alert("复制成功,请粘贴到你的QQ/MSN上推荐给你的好友");
    }
</script>
</head>

<body>
<a title='点击复制本页地址,将地址发送给好友' onclick='copyToClipBoard ()' style="cursor:hand; font-weight:700">点击复制网址</a></font><th style="vertical-align:bottom ;padding-left:1.5%; border:0">
</body>
</html>

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics