Home  >  Article  >  Web Front-end  >  Simple code to disable left and right mouse button functions on web pages_javascript skills

Simple code to disable left and right mouse button functions on web pages_javascript skills

WBOY
WBOYOriginal
2016-05-16 17:31:321326browse

A simple code to disable the left and right mouse button functions on a web page. I found this code online before, and the trial effect was good. I put it here for backup. I think this can be regarded as one of the commonly used codes. Of course, you can definitely use the mouse when viewing the source code, but sometimes it doesn't have to be so complicated and powerful, and there are more codes in the source code than text.

Simple code to disable left and right mouse button functions on web pages
[Ctrl A select all Note: If you need to introduce external Js, you need to refresh to execute
]
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn