如何实现在网页复制后加上网站的来源href
生活随笔
收集整理的这篇文章主要介绍了
如何实现在网页复制后加上网站的来源href
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
<head runat="server">
<title>无标题页</title>
<script language=javascript type="text/javascript">
function modifyclipboard(){
var txt=clipboardData.getData("text");
txt=txt+"你好,欢迎访问本站:"+location.href;
clipboardData.setData("text",txt);
}
</script>
</head>
<body οncοpy="setTimeout('modifyclipboard()',100)">
<input type=text maxlength=11 />
<input type=text maxlength=11 οnpaste="return false" />
</body>
总结
以上是生活随笔为你收集整理的如何实现在网页复制后加上网站的来源href的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: DOM碰到的小问题
- 下一篇: History操作历史记录