//禁用Ctrl+Shift+I Ctrl+U $(document).keydown(function(e) { //按了 Ctrl+Shift+I 或者 Ctrl+U if ((e.ctrlKey && e.shiftKey && e.which == 73) || (e.ctrlKey && e.which == 85)) { e.preventDefault(); // window.location.href = "about:blank"; // window.close(); } }); //禁止鼠标右键 $(document).on("contextmenu", function(e) { e.preventDefault(); return false; }); //窗口调整大小 $(window).on("resize", function(e) { if ($(window).height() < $(document).height()) { e.preventDefault(); window.location.href = "about:blank"; window.close(); } });
禁止鼠标右键以及禁止查看源代码
本作品采用知识共享署名-非商业性使用-禁止演绎 4.0 国际许可协议进行许可。作者:柴宏俊»禁止鼠标右键以及禁止查看源代码