Take a note.
Disable the right-click menu, Copy, select $ (document). Bind ("ContextMenu copy Selectstart", function () { return false;}); /Disable CTRL + C and CTRL + V (all browsers support) $ (document). KeyDown (function (e) { if (e.ctrlkey && (e.keycode = = | | | e.keycode = = ()) { return false; }}); /Set CSS Disable selection (if you write the following CSS you do not need this piece of code, the new browser support) $ (function () { $ ("body"). CSS ({ "-moz-user-select": "None", "- Webkit-user-select ":" None ", "-ms-user-select ":" None ", "-khtml-user-select ":" None ", "-o-user-select ":" None ", " User-select ":" None " });
Prevents JavaScript from disabling, can be written in CSS (new browser support, and gradually become the standard):
body { -moz-user-select:none; /* Firefox Private properties */ -webkit-user-select:none; /* WebKit Kernel private properties */ -ms-user-select:none; /* IE private properties (IE10 and later) */ -khtml-user-select:none; /* khtml Kernel private properties */ -o-user-select:none; /* Opera Private properties */ User-select:none; /* CSS3 Property */}
Excerpted from http://www.code-life.com/?p=440
Prohibit copying Web page content