Most of the articles we write will be reprinted if they are good, but the problem is that many people will not leave the original address for reprinting, or, you do not want others to repost your article at all. It is a good way to prohibit selection and replication. The code on the network is very redundant, the two lines of code that we bring to you today can easily prohibit web pages from being copied and pasted.
Copy to ClipboardReference content: [www.bkjia.com] <SCRIPT language = javascript type = text/javascript> <! -- Document. oncontextmenu = new Function ('event. returnValue = false; '); document. onselectstart = new Function ('event. returnValue = false; '); --> </SCRIPT>
This is the simple code above. You can disable webpage selection and right-click. Although the solution is simple, or you can copy the source code, however, it always adds a barrier to the replicated person.
Digress:
What if you are a webmaster and have a website that prevents replication? We recommend that you use the most popular software.GB green BrowserIts Extension bar has a function, that is, to remove the right mouse button, so that you want to copy it!