How JavaScript Masks Replication features:
Some webmasters do not want content to be easily copied by others, so the code is forbidden to copy the content of the Web page, of course, this may be a little knowledge of the Web site of the role of people, but also can play a certain role, at least the customer is a demand, so programmers must be.
Replication generally uses right-click Assignment, and one way to do this is to use the CTRL + V key to copy, and here's a piece of code that blocks both.
The code example is as follows:
document.oncontextmenu=function() { returnfalse;} document.onkeydown =function() { if(event.ctrlkey&&window.event.keycode==67) { return false ; } } document.body.oncopy=function() { returnfalse;} Document.onselectstart=function() {}
The above code masks the right-click Copy paste and Ctrl + V copy sticky paste functionality.
The original address is: http://www.softwhy.com/forum.php?mod=viewthread&tid=8291
For more information, refer to: http://www.softwhy.com/javascript/
How JavaScript Masks replication capabilities