时间:2021-05-26
屏蔽f12审查
<script>document.onkeydown = function () {if (window.event && window.event.keyCode == 123) {alert("F12被禁用");event.keyCode = 0;event.returnValue = false;}if (window.event && window.event.keyCode == 13) {window.event.keyCode = 505;}if (window.event && window.event.keyCode == 8) {alert(str + "\n请使用Del键进行字符的删除操作!");window.event.returnValue = false;}}</script>屏蔽右键菜单
<script>document.oncontextmenu = function (event) {if (window.event) {event = window.event;}try {var the = event.srcElement;if (!((the.tagName == "INPUT" && the.type.toLowerCase() == "text") || the.tagName == "TEXTAREA")) {return false;}return true;} catch (e) {return false;}} </script>屏蔽粘贴
<script>document.onpaste = function (event) {if (window.event) {event = window.event;}try {var the = event.srcElement;if (!((the.tagName == "INPUT" && the.type.toLowerCase() == "text") || the.tagName == "TEXTAREA")) {return false;}return true;} catch (e) {return false;}}</script>屏蔽复制
<script>document.oncopy = function (event) {if (window.event) {event = window.event;}try {var the = event.srcElement;if (!((the.tagName == "INPUT" && the.type.toLowerCase() == "text") || the.tagName == "TEXTAREA")) {return false;}return true;} catch (e) {return false;}}</script>屏蔽剪切
<script>document.oncut = function (event) {if (window.event) {event = window.event;}try {var the = event.srcElement;if (!((the.tagName == "INPUT" && the.type.toLowerCase() == "text") || the.tagName == "TEXTAREA")) {return false;}return true;} catch (e) {return false;}}<script>屏蔽选中
<script>document.onselectstart = function (event) {if (window.event) {event = window.event;}try {var the = event.srcElement;if (!((the.tagName == "INPUT" && the.type.toLowerCase() == "text") || the.tagName == "TEXTAREA")) {return false;}return true;} catch (e) {return false;}}</script>这些代码获取你在某些特殊开发的场合你可以用到,但是你也只能用这个骗一下小白,哈哈! 我收藏的分享出来给大家!
声明:本页内容来源网络,仅供用户参考;我单位不保证亦不表示资料全面及准确无误,也不保证亦不表示这些资料为最新信息,如因任何原因,本网内容或者用户因倚赖本网内容造成任何损失或损害,我单位将不会负任何法律责任。如涉及版权问题,请提交至online#300.cn邮箱联系删除。
js屏蔽效果复制代码代码如下:/**屏蔽F1帮助*/window.onhelp=function(){returnfalse;}/***屏蔽F5、Ctrl+N、
复制代码代码如下://屏蔽鼠标右键、Ctrl+N、Shift+F10、F5刷新、退格键//屏蔽F1帮助functionwindow.onhelp(){retur
以电脑为例,剪切,复制和粘贴的含义: 1、剪切是把选中的信息放入到剪切板中,单击复制后又会多出一份。剪切操作后原来的地方就没有那个信息了。 2、复制是生成一
屏蔽Alt+F4等快捷键:复制代码代码如下:functionKeyDown(){//屏蔽鼠标右键、Ctrl+n、shift+F10、F5刷新、退格键//aler
复制代码代码如下://屏蔽鼠标右键、Ctrl+N、Shift+F10、F11、F5刷新、退格键functiondocument.oncontextmenu(){