Disable RightClick Mouse and Disable Print Screen Key…Using JavaScript

ImageImage

 How To Block Print Screen As well As Mouse functionalities With Java Script

<html>
<head>

 <script language=”Javascript1.2″>
am = “This function is disabled!”;
bV  = parseInt(navigator.appVersion)
bNS = navigator.appName==”Netscape”
bIE = navigator.appName==”Microsoft Internet Explorer”
function check(e) {
   if (bNS && e.which > 1){
      alert(am)
      return false
   } else if (bIE && (event.button >1)) {
     alert(am)
     return false;
   }
}
document.onmousedown = check;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (bNS && bV<5) window.onmousedown = check;
</script>
</head>
<!–what i mention in body tag that the way to impliment inline java script –>
<body onload=setInterval(“window.clipboardData.setData(‘text’,”)”,2) oncontextmenu=”return false” onselectstart=”return false” >
This Document is Protected with RightClick & left Click &Print Screen  with Alerts!!!!!!!!!!!!!!!
</body>
</html>

With Regards ,

K.RAJA SEKHAR REDDY (Software Developer)

Advertisements
This entry was posted in JavaScrpit and tagged . Bookmark the permalink.

3 Responses to Disable RightClick Mouse and Disable Print Screen Key…Using JavaScript

  1. Pingback: Disable RightClick Mouse and Disable Print Screen Key…Using JavaScript | raj9992

  2. Satheesh says:

    Hi i used ur disable print screen key code . but it doesn’t work for me, i am developing php website. and i run the program in my local computer .i used the firefox browser

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s