Easy A
Would you like to react to this message? Create an account in a few clicks or log in to continue.


 
HomeHome  Latest imagesLatest images  SearchSearch  RegisterRegister  Log inLog in  

Share
 

 Disable right click on websites

View previous topic View next topic Go down 
AuthorMessage
Feather
Member
Member
avatar

Posts : 27
Join date : 2011-03-09

Disable right click on websites Empty
PostSubject: Disable right click on websites   Disable right click on websites EmptySun Jun 12, 2011 8:20 pm

Simply add the following code to the <BODY> section of your web page (Press Ctrl C after selecting code to copy it): or anywhere on the website.

Code:

<script language=JavaScript>
<!--

//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com

var message="Function Disabled!";

///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("alert(message);return false")

// -->
</script>
Back to top Go down
 

Disable right click on websites

View previous topic View next topic Back to top 
Page 1 of 1

 Similar topics

-
» Help with a button click counter
» www.visualock.webs.com right click disabling
» Edit Windows Right Click menu
» Data grid binding a balnk after "add new row" button click
» Making Show/Hide Content Showing and hiding content on mouse click!

Permissions in this forum:You cannot reply to topics in this forum
Easy A :: Disable right click on websites Edit-trash Useless :: Trash-