Return to Snippet

Revision: 47289
at June 4, 2011 05:53 by stephcode


Initial Code
<SCRIPT LANGUAGE="JavaScript">
<!-- Disable
function disableselect(e){
return false
}

function reEnable(){
return true
}

//if IE4+
document.onselectstart=new Function ("return false")
document.oncontextmenu=new Function ("return false")
//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
//-->
</script>

Initial URL

                                

Initial Description
Annoy your visitors, fool your friends, fun and party. Please note that this also disables ability to write in form fields.

Initial Title
Disable right-clicking, image dragging, pretty much everything, etc.

Initial Tags
image

Initial Language
JavaScript