ASP.NET - Right Click Validation - Asked By hiren dhameliya on 24-Sep-12 08:34 AM

Hi,

Plaese tell me if i want to put validation like no one can cilck right click on my website .
how i can do it ,,

please reply me as soon as

hiren.
Hemanth Kumar replied to hiren dhameliya on 24-Sep-12 08:44 AM
you need  to disable the Right Click in the Web Site .Try like this

$(document).ready(function(){
  $(document).bind("contextmenu",function(e){
    return false;
  });
});

Jitendra Faye replied to hiren dhameliya on 25-Sep-12 12:18 AM
For this disable right click on page.  try this code-

<script language="javascript">

document.onmousedown=disableclick;

status="Right Click Disabled";

Function disableclick(e)

{

  if(event.button==2)

   {

   alert(status);

   return false;  

   }

}

</script>



Try this and let me know.
hiren dhameliya replied to Jitendra Faye on 26-Oct-12 08:32 AM
i have applied  this one but it same not working.....