This article introduces and demonstrates the instance code for disabling the mouse and right keys on a webpage. For more information, see the simple code for disabling the mouse and right keys on a webpage. This code was previously found online, the trial has a good effect. Put the backup here. I think this is also one of the common code. Of course, you can use the mouse to view the source code. However, sometimes you don't have to think about the complexity and requirements. Besides, the source code contains more code than the text.
<Script language = JavaScript> document. oncontextmenu = new Function ("event. returnValue = false; "); document. onselectstart = new Function ("event. returnValue = false; "); simple code for disabling the left and right mouse keys on the script webpage
[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]