This little Javascript code prevents your visitors to copy content from your website or blog.
Just copy and paste this code into the <head> section of your website's code and see the magic. :-)
Just copy and paste this code into the <head> section of your website's code and see the magic. :-)
| <script type="text/JavaScript"> | |
| //courtesy of BoogieJack.com
function killCopy(e){ | |
| return false | |
| } | |
| function reEnable(){ | |
| return true | |
| } | |
| document.onselectstart=new Function ("return false") | |
| if (window.sidebar){ | |
| document.onmousedown=killCopy | |
| document.onclick=reEnable | |
| } | |
| </script> | |
It doesn't work in firefox.
ReplyDeleteIt disable to write anything in textbox