Pages

click new

Monday, May 11, 2020

HTML script to disable text selection in blogger

how to disable right click on blogger blog

how to disable right click on blogger blog

NOTE: This script will prevent just text selection on blog. To completely remove copy paste option you will have to disable right click also.

<!- start disable copy paste --><script src='demo-to-prevent-copy-paste-on-blogger_files/googleapis.js'></script><script type='text/javascript'> if(typeof document.onselectstart!="undefined" ) {document.onselectstart=new Function ("return false" ); } else{document.onmousedown=new Function ("return false" );document.onmouseup=new Function ("return false"); } </script>
<!-- End disable copy paste --></!->

To disable right click : Click Here 

No comments:

Post a Comment