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



 
HomeTheAppleBytesLatest imagesMailRegisterLog in

Share | 
 

 Don't let the user use right click on mouse in your Website

View previous topic View next topic Go down 
AuthorMessage
PHOENiX.505
Administrator
Administrator


Location : Noida, India
iPoints : 63510
Warning Level : Safe

Don't let the user use right click on mouse in your Website Empty
PostSubject: Don't let the user use right click on mouse in your Website   Don't let the user use right click on mouse in your Website Icon_minitime16th March 2011, 10:41 pm

Code:
<SCRIPT LANGUAGE="JavaScript">
var message="Function Disabled!";
///////////////////////////////////
function clickIE() {if (document.all) {alert(message);return false;}}
function clickNS(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=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")
// -->
</script>
Back to top Go down
http://www.theapplebytes.com
 

Don't let the user use right click on mouse in your Website

View previous topic View next topic Back to top 

 Similar topics

-
» Make your website as user's Homepage.
» Camera Mouse
» Add website to favorites
» Check if a Website is down or not ??
» Apple Removes Steve Jobs Tribute from website, Launches RememberingSteveJobs.com
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
 :: . . : : Tips Tricks & Tweaks : : . . :: . . : : Javascript : : . .-
Create a forum | ©phpBB | Free forum support | Report an abuse | Forumotion.com
© Copyright TheAppleBytes | All Rights Reserved.