When copying this site's article, automatically add the article source link
<Input type = "button" name = "Submit" onClick = 'copytoclipboard () 'value = "copy the article address on this page, "width =" 100 "height =" 16 "> <script language =" javascript "> function copyToClipBoard () {var clipBoardContent = ""; clipBoardContent + = document. title; clipBoardContent + = ""; clipBoardContent + = this. location. href; window. clipboardData. setData ("Text", clipBoardContent); alert ("Copied successfully, paste it on your QQ/MSN and recommend it to your friends ");} script, script, document. body. oncopy = function () {setTimeout (function () {var text = clipboardData. getData ("text"); if (text) {text = text + "\ r \ n this article is from" "reprinted, please indicate the source URL in the form of a link:" + location. href; clipboardData. setData ("text", text) ;}, 100)} script
[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]