Add Attribution Links to Text Copied From Your Blog In Blogger


Hello Bloggers firstly I would like to welcome you to Techno Geek Zone hope you will get some help from our tutorials posts. Today I am going to show you how you can add your page link to that place automatically where someone pastes text copied from your blog. Below is an Example: 


To add attribution links to Text Copied From Your Blog Follow :

Go To Dashboard of Blogger Blog in which you want to add this feature. Move to Template>Edit HTML

Press Ctrl+f to open search box and search for </body> tag and paste the below script above this </body> tag.

<script type='text/javascript'>
function addLink(){var a=document.getElementsByTagName("body")[0];var b;b=window.getSelection();var c="<br/><br/>   Read More : <a href='"+document.location.href+"'>"+document.location.href+"</a>";var d=b+c;var e=document.createElement("div");e.style.position="absolute";e.style.left="-99999px";a.appendChild(e);e.innerHTML=d;b.selectAllChildren(e);window.setTimeout(function(){a.removeChild(e)},0)}document.oncopy=addLink
</script>

Post a Comment

2 Comments

  1. you need to view and rearrange this post its really confusing

    ReplyDelete
    Replies
    1. I think you should read the instructions in the post carefully.

      Delete

Although every comment is appreciated, Keep in mind that any link or keyword in the comments may be the reason for the deletion of your comment. Thanks for understanding!