<article class=“article fmt article-content”><h2>一:屏蔽F12审查元素</h2><pre><code>//屏蔽F12document.onkeydown = function(){ if(window.event && window.event.keyCode == 123) { //将以后窗口跳转置空白页 window.location=“about:blank”; event.keyCode=0; event.returnValue=false; }}</code></pre><h2>二:屏蔽鼠标右键菜单</h2><pre><code>//屏蔽右键菜单document.oncontextmenu = function (event){ return false;}</code></pre><h2>三:屏蔽粘贴文本内容</h2><pre><code>//屏蔽粘贴document.onpaste = function (event){ return false;}</code></pre><h2>四:屏蔽复制文本内容</h2><pre><code>//屏蔽复制document.oncopy = function (event){ return false;}</code></pre><h2>五:屏蔽剪切文本内容</h2><pre><code>//屏蔽剪切document.oncut = function (event){ return false;}</code></pre><h2>六:屏蔽选中文本内容</h2><pre><code>//屏蔽选中document.onselectstart = function (event){ return false;}</code></pre></article>