Monday, October 7, 2019

Disable copy paste code in blog - using javascript

If you are looking for code that disables copy paste on your blog, this is it.
Add a new html/javascript gadget and keyin below code.

< 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" );
document.onmousedown=new Function ("return false" );
document.onmouseup=new Function ("return false");

No comments:

Post a Comment