Social Icons

Sunday, August 12, 2012

Javascript code to the Blog can not copy paste


Javascript code to the Blog can not copy paste.
We have a lot of people who create a blog to easily retrieve the files easily copy files to others. Therefore, one way is to disable right-click the mouse in order not to imitate others. This means both that article and there are gadgets that can not be aimed at either right-click to open link in new tab or who intend to copy the entire contents of the article.

If you do not want to copy the article and picture in others. There is one effective way is to add the javascript code.
Please use the javascript code below.
Find the code </ head> then enter the code below under it.


   <!-- Disable Copy Function-->
    <script language='JavaScript1.2'>
    function disableselect(e){
    return false}
    function reEnable(){
    return true}
    document.onselectstart=new Function (&quot;return false&quot;)
    if (window.sidebar){
    document.onmousedown=disableselect
    document.onclick=reEnable}
    </script>


Good luck and hopefully succeed.

No comments: