JavaScript 에서 콘 솔 열기 금지 (오른쪽 키 / 도구 모음 / F12 / Shift + Ctrl + I)
<style type="text/css">
/* */
body{
-moz-user-select: none; /* */
-webkit-user-select: none; /*webkit */
-ms-user-select: none; /*IE10*/
-khtml-user-select: none; /* */
user-select: none;
}
</style>
<p>Test</p>
<script type="text/javascript">
// ( )
window.oncontextmenu=function(){return false;}
// ( F12 shift+ctrl+i )
window.onkeydown = window.onkeyup = window.onkeypress = function () {
window.event.returnValue = false;
return false;
}
// , ,
var h = window.innerHeight,w=window.innerWidth;
window.onresize = function () {
if (h!= window.innerHeight||w!=window.innerWidth){
window.close();
window.location = "about:blank";
}
}
/* , , , , ( IE9 )*/
if(window.addEventListener){
window.addEventListener("DOMCharacterDataModified", function(){window.location.reload();}, true);
window.addEventListener("DOMAttributeNameChanged", function(){window.location.reload();}, true);
window.addEventListener("DOMCharacterDataModified", function(){window.location.reload();}, true);
window.addEventListener("DOMElementNameChanged", function(){window.location.reload();}, true);
window.addEventListener("DOMNodeInserted", function(){window.location.reload();}, true);
window.addEventListener("DOMNodeInsertedIntoDocument", function(){window.location.reload();}, true);
window.addEventListener("DOMNodeRemoved", function(){window.location.reload();}, true);
window.addEventListener("DOMNodeRemovedFromDocument", function(){window.location.reload();}, true);
window.addEventListener("DOMSubtreeModified", function(){window.location.reload();}, true);
}
</script>
</code></pre>
<p> </p>
<p> , “ ” , ( :JavaScript 、 、 ), , , 。。。 , footer.php , :</p>
<p> </p>
<pre><code><script type="text/javascript">
// ( )
window.oncontextmenu=function(){return false;}
// ( F12 shift+ctrl+i )
window.onkeydown = window.onkeyup = window.onkeypress = function () {
window.event.returnValue = false;
return false;
}
// , ,
var h = window.innerHeight,w=window.innerWidth;
window.onresize = function () {
if (h!= window.innerHeight||w!=window.innerWidth){
window.close();
window.location = "about:blank";
}
}
</script> </code></pre>
<p> JavaScript , JavaScript , 。</p>
</div>
</div>
</div>
</div>
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
Thymeleaf 의 일반 양식 제출 과 AJAX 제출텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.