js 의 차단 사용 예시

1883 단어 js가리다
js 차단 효과
 
/** F1 */
window.onhelp = function(){return false;}
/**
* F5、Ctrl+N、Shift+F10、Alt+F4
* , keyCode
*/
document.onkeydown = function(event){
event = window.event || event;
if(event.keyCode==116 || (event.ctrlKey && event.keyCode==78) || (event.shiftKey && event.keyCode==121) || (event.altKey && event.keyCode==115)){
event.keyCode =0;
event.returnvalue = false;
}
}
/** */
document.oncontextmenu = function(){return false;}
//
document.onmousedown = function(event){
event = window.event || event;
if(document.all && event.button == 2) {
event.returnvalue=false;
}
}
/**
* “ ” (<a href="javascript:replaceLocation('http://www.google.com')" mce_href="javascript:replaceLocation('http://www.google.com')">Google</a>)
* @param url URL
*/
function replaceLocation(url){
document.location.replace(url);
}
/** */
document.onselectstart=function(){return false;}
/** */
document.body.oncopy = function(){return false;}
/** */
document.body.oncut = function(){return false;}
/** */
document.body.onpaste = function(){return false;}
/** ( ) */
window.setInterval('window.clipboardData("Text", "")', 100);
/**
* ( <body onload=clear()> )
*/
function clear() {
var source=document.body.firstChild.data;
document.open();
document.close();
document.body.innerHTML = source;
}
/**
* js
*/
function KillError()
{
  return true;
}
window.onerror=KillError;

좋은 웹페이지 즐겨찾기