Tuesday, October 6, 2015

RIGHT CLICKS ARE NOT ALLOWED

<script language="JavaScript">
<!--
function click() {
if (event.button==2) {
alert('SORRY, RIGHT CLICKS ARE NOT ALLOWED. PLEASE CONTACT (y.m.chhantyal@gmail.com) ME IF IT IS NECESSARY.');
}
}
document.onmousedown=click
// -->
</script>

<script type="text/javascript">
var omitformtags=["input", "textarea", "select"]
omitformtags=omitformtags.join("|")
function disableselect(e){
if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
return false
}
function reEnable(){
return true
}
if (typeof document.onselectstart!="undefined")
document.onselectstart=new Function ("return false")
else{
document.onmousedown=disableselect
document.onmouseup=reEnable
}
</script>